[rtems commit] sparc in_cksum: Use __sparc__ which is available in -ansi mode
Joel Sherrill
joel at rtems.org
Thu Jun 20 15:47:10 UTC 2013
Module: rtems
Branch: master
Commit: 6520aef1e34c12b98330e0f404f215493d014431
Changeset: http://git.rtems.org/rtems/commit/?id=6520aef1e34c12b98330e0f404f215493d014431
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Thu Jun 20 10:52:16 2013 -0500
sparc in_cksum: Use __sparc__ which is available in -ansi mode
---
cpukit/libnetworking/machine/in_cksum.h | 2 +-
cpukit/libnetworking/netinet/in_cksum.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/libnetworking/machine/in_cksum.h b/cpukit/libnetworking/machine/in_cksum.h
index e625726..67dafb6 100644
--- a/cpukit/libnetworking/machine/in_cksum.h
+++ b/cpukit/libnetworking/machine/in_cksum.h
@@ -181,7 +181,7 @@ in_cksum_update(struct ip *ip)
* SPARC Version
*/
-#elif (defined(__GNUC__) && defined(sparc))
+#elif (defined(__GNUC__) && defined(__sparc__))
static __inline u_int
in_cksum_hdr(const struct ip *ip)
diff --git a/cpukit/libnetworking/netinet/in_cksum.c b/cpukit/libnetworking/netinet/in_cksum.c
index ff25ad6..3ece6fa 100644
--- a/cpukit/libnetworking/netinet/in_cksum.c
+++ b/cpukit/libnetworking/netinet/in_cksum.c
@@ -61,7 +61,7 @@
#include "in_cksum_nios2.h"
-#elif (defined(__GNUC__) && defined(__sparc))
+#elif (defined(__GNUC__) && defined(__sparc__))
#include "in_cksum_sparc.h"
More information about the vc
mailing list