summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/machine
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-11-05 16:18:53 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-11-05 16:18:53 +0000
commit6db216dd8eb47d6b7d9eb347a6dd45583a26081c (patch)
tree0c8f5cbcd80e551fff3d4bcf61d36f2228917ba5 /cpukit/libnetworking/machine
parent2004-11-05 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-6db216dd8eb47d6b7d9eb347a6dd45583a26081c.tar.bz2
2004-11-05 Joel Sherrill <joel@OARcorp.com>
* libnetworking/machine/endian.h: Protect BYTE_ORDER from double definition.
Diffstat (limited to 'cpukit/libnetworking/machine')
-rw-r--r--cpukit/libnetworking/machine/endian.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libnetworking/machine/endian.h b/cpukit/libnetworking/machine/endian.h
index 34187dc93e..6faa8f1a71 100644
--- a/cpukit/libnetworking/machine/endian.h
+++ b/cpukit/libnetworking/machine/endian.h
@@ -13,6 +13,7 @@
#define BIG_ENDIAN 4321
#define LITTLE_ENDIAN 1234
+#ifndef BYTE_ORDER
#if CPU_BIG_ENDIAN
# define BYTE_ORDER BIG_ENDIAN
#elif CPU_LITTLE_ENDIAN
@@ -20,6 +21,7 @@
#else
# error "Can't decide which end is which!"
#endif
+#endif
#if ( CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES == FALSE )