medfall

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

commit 4e22a2cef3afa525ba0ec869fe33e70faa66eeb1
parent 6532cc421e6a237fcf2f538139eb9ec8db8a2c5f
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Aug 31 09:50:17 -0700

Rename endianness.h to platform_endian.h

Diffstat:
endianness.h | 16----------------
platform_endian.h | 16++++++++++++++++
stream.h | 2+-
3 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/endianness.h b/endianness.h @@ -1,16 +0,0 @@ -#ifndef _ENDIANNESS_H_ -#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 -#elif defined( _WIN32 ) -# define IS_LITTLE_ENDIAN -#endif - -#endif // _ENDIANNESS_H_ diff --git a/platform_endian.h b/platform_endian.h @@ -0,0 +1,16 @@ +#ifndef _PLATFORM_ENDIAN_H_ +#define _PLATFORM_ENDIAN_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 +#elif defined( _WIN32 ) +# define IS_LITTLE_ENDIAN +#endif + +#endif // _PLATFORM_ENDIAN_H_ diff --git a/stream.h b/stream.h @@ -1,7 +1,7 @@ #ifndef _STREAM_H_ #define _STREAM_H_ -#include "endianness.h" +#include "platform_endian.h" struct Stream { char * ptr;