]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
fixed compiling under ubuntu with devkitARM_r41
authorroel@libnfc.org <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Wed, 13 Mar 2013 13:46:40 +0000 (13:46 +0000)
committerroel@libnfc.org <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Wed, 13 Mar 2013 13:46:40 +0000 (13:46 +0000)
client/proxendian.h

index 4a386a0ddd244cd47d200b360348928a8cbc85ad..866ea250714719da8485e34a95f9c50c2732a0d0 100644 (file)
 
 #include <stdint.h>
 
-#ifdef WIN32
+#ifdef _WIN32
 # define HOST_LITTLE_ENDIAN
 #else
 # include <sys/types.h>
-
+# ifndef BYTE_ORDER
+#  define BYTE_ORDER __BYTE_ORDER
+#  define LITTLE_ENDIAN __LITTLE_ENDIAN
+#  define BIG_ENDIAN __BIG_ENDIAN
+# endif
 # if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN)
 #  error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN
 # endif
-
 # if BYTE_ORDER == LITTLE_ENDIAN
 #  define HOST_LITTLE_ENDIAN
 # endif
Impressum, Datenschutz