medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f512e0ce055f6628c99558476551e6eafaffaa4a
parent a44523074e15a7f6f1178793a69a1ea385a2011d
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Sep 14 21:01:10 +0100

IS_LITTLE/BIG_ENDIAN -> PLATFORM_LITTLE/BIG_ENDIAN

Diffstat:
platform_endian.h | 6+++---
stream.h | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/platform_endian.h b/platform_endian.h @@ -3,14 +3,14 @@ #if defined( __linux__) || defined( __APPLE__ ) || defined( __OpenBSD__ ) # if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -# define IS_LITTLE_ENDIAN +# define PLATFORM_LITTLE_ENDIAN 1 # elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -# define IS_BIG_ENDIAN +# define PLATFORM_BIG_ENDIAN 1 # else # error "I can't tell what byte order this machine uses" # endif #elif defined( _WIN32 ) -# define IS_LITTLE_ENDIAN +# define PLATFORM_LITTLE_ENDIAN 1 #else # error new platform #endif diff --git a/stream.h b/stream.h @@ -8,7 +8,7 @@ struct Stream { char * ptr; }; -#if defined( IS_LITTLE_ENDIAN ) +#if PLATFORM_LITTLE_ENDIAN #define DEF_READ_WRITE( type ) \ inline Stream read_##type( Stream stream, type * v ) { \ @@ -22,7 +22,7 @@ struct Stream { return stream; \ } -#elif defined( IS_BIG_ENDIAN ) +#elif PLATFORM_BIG_ENDIAN #define DEF_READ_WRITE( type ) \ inline Stream read_##type( Stream stream, type * v ) { \