summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2010-06-18 22:37:42 -0700
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-19 20:03:15 +0200
commitfdd7b566ecdc174907f38d9389b28ba842d2b4bf (patch)
tree38e5f9a61da8c6ed5155d3542fd0d56aaf157714 /include
parenteb08b6ed5cc7bb764658cd7a3b829e2b3aac4abc (diff)
downloadbusybox-w32-fdd7b566ecdc174907f38d9389b28ba842d2b4bf.tar.gz
busybox-w32-fdd7b566ecdc174907f38d9389b28ba842d2b4bf.tar.bz2
busybox-w32-fdd7b566ecdc174907f38d9389b28ba842d2b4bf.zip
A few minor portability improvements
Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/platform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/platform.h b/include/platform.h
index f87add552..4bd7a3d2e 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -168,10 +168,10 @@
168#if defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ 168#if defined(__BIG_ENDIAN__) && __BIG_ENDIAN__
169# define BB_BIG_ENDIAN 1 169# define BB_BIG_ENDIAN 1
170# define BB_LITTLE_ENDIAN 0 170# define BB_LITTLE_ENDIAN 0
171#elif __BYTE_ORDER == __BIG_ENDIAN 171#elif defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN
172# define BB_BIG_ENDIAN 1 172# define BB_BIG_ENDIAN 1
173# define BB_LITTLE_ENDIAN 0 173# define BB_LITTLE_ENDIAN 0
174#elif __BYTE_ORDER == __LITTLE_ENDIAN 174#elif (defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN) || defined(__386__)
175# define BB_BIG_ENDIAN 0 175# define BB_BIG_ENDIAN 0
176# define BB_LITTLE_ENDIAN 1 176# define BB_LITTLE_ENDIAN 1
177#else 177#else