From: roel@libnfc.org Date: Wed, 13 Mar 2013 13:46:40 +0000 (+0000) Subject: fixed compiling under ubuntu with devkitARM_r41 X-Git-Tag: v1.0.0~126 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/19d9a7b0cecac479befe6a381ab390eed3ed51cd fixed compiling under ubuntu with devkitARM_r41 --- diff --git a/client/proxendian.h b/client/proxendian.h index 4a386a0d..866ea250 100644 --- a/client/proxendian.h +++ b/client/proxendian.h @@ -13,15 +13,18 @@ #include -#ifdef WIN32 +#ifdef _WIN32 # define HOST_LITTLE_ENDIAN #else # include - +# 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