X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/4e3e51b612cd6de5f22a379803fd85c309ed4e21..5daad8266013a5600e958d256dfd58f451bc758b:/client/proxendian.h 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