From 19d9a7b0cecac479befe6a381ab390eed3ed51cd Mon Sep 17 00:00:00 2001 From: "roel@libnfc.org" Date: Wed, 13 Mar 2013 13:46:40 +0000 Subject: [PATCH] fixed compiling under ubuntu with devkitARM_r41 --- client/proxendian.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 -- 2.39.5