medfall

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

commit 67b0bed585c8d35a782fdf15fe28b1f402caaa52
parent eaf25f8cb2dccec6be5c16e15e04bfa931059c99
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Mon Mar  7 20:31:58 +0000

Move endian.h to endianness.h

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