OSDN Git Service

Fixed byte order macros for Mac OS X: big-endian machines were erroneously detected...
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Thu, 10 Jun 2010 16:38:20 +0000 (16:38 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Thu, 10 Jun 2010 16:38:20 +0000 (16:38 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@140 60bc1c72-a15a-11de-b98f-4500b42dc123

libexfat/byteorder.h

index d125f40..1e25f2c 100644 (file)
 #define bswap_16(x) OSSwapInt16(x)
 #define bswap_32(x) OSSwapInt32(x)
 #define bswap_64(x) OSSwapInt64(x)
+/* GNU endian macros have "__" prefix, BSD ones don't */
+#define __BYTE_ORDER BYTE_ORDER
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
+#define __BIG_ENDIAN BIG_ENDIAN
 #else
 #include <endian.h>
 #include <byteswap.h>