commit 8788b0a5f74840f93b540253b01bc009eb30147e parent f6e452b5fa8dc2520b55c43ff8434fb5d716154b Author: Michael Savage <mikejsavage@gmail.com> Date: Fri Mar 25 23:04:36 +0000 Make endianness.h a bit more readable Diffstat:
endianness.h | | | 16 | ++++++++-------- |
diff --git a/endianness.h b/endianness.h @@ -2,15 +2,15 @@ #define _ENDIANNESS_H_ #if defined( __linux__) || defined( __APPLE__ ) || defined( __OpenBSD__ ) -#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -#define IS_LITTLE_ENDIAN -#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -#define IS_BIG_ENDIAN -#else -#error "I can't tell what byte order this machine uses" -#endif +# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ +# define IS_LITTLE_ENDIAN +# elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +# define IS_BIG_ENDIAN +# else +# error "I can't tell what byte order this machine uses" +# endif #elif defined( _WIN32 ) -#define IS_LITTLE_ENDIAN +# define IS_LITTLE_ENDIAN #endif #endif // _ENDIANNESS_H_