diff options
Diffstat (limited to 'src/libjin/Utils')
-rw-r--r-- | src/libjin/Utils/endian.h | 14 | ||||
-rw-r--r-- | src/libjin/Utils/macros.h | 4 | ||||
-rw-r--r-- | src/libjin/Utils/utils.h | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/src/libjin/Utils/endian.h b/src/libjin/Utils/endian.h index d4c441a..01def88 100644 --- a/src/libjin/Utils/endian.h +++ b/src/libjin/Utils/endian.h @@ -1,23 +1,23 @@ -#ifndef JIN_LIL_ENDIAN && JIN_BIG_ENDIAN +#ifndef LIBJIN_LIL_ENDIAN && LIBJIN_BIG_ENDIAN -#define JIN_LIL_ENDIAN 2 -#define JIN_BIG_ENDIAN 4 +#define LIBJIN_LIL_ENDIAN 2 +#define LIBJIN_BIG_ENDIAN 4 #endif -#ifndef JIN_BYTEORDER +#ifndef LIBJIN_BYTEORDER #ifdef __linux__ #include <endian.h> -#define JIN_BYTEORDER __BYTE_ORDER +#define LIBJIN_BYTEORDER __BYTE_ORDER #else /* __linux__ */ #if defined(__hppa__) || \ defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \ (defined(__MIPS__) && defined(__MISPEB__)) || \ defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || \ defined(__sparc__) -#define JIN_BYTEORDER JIN_BIG_ENDIAN +#define LIBJIN_BYTEORDER LIBJIN_BIG_ENDIAN #else -#define JIN_BYTEORDER JIN_LIL_ENDIAN +#define LIBJIN_BYTEORDER LIBJIN_LIL_ENDIAN #endif #endif /* __linux__ */ #endif /* !SDL_BYTEORDER */
\ No newline at end of file diff --git a/src/libjin/Utils/macros.h b/src/libjin/Utils/macros.h index 290bcf7..e19193c 100644 --- a/src/libjin/Utils/macros.h +++ b/src/libjin/Utils/macros.h @@ -1,5 +1,5 @@ -#ifndef __JIN_MACROS_H -#define __JIN_MACROS_H +#ifndef __LIBJIN_MACROS_H +#define __LIBJIN_MACROS_H #include <cstring> //#define implement // ʵֽӿ diff --git a/src/libjin/Utils/utils.h b/src/libjin/Utils/utils.h index cf0920e..1654a8f 100644 --- a/src/libjin/Utils/utils.h +++ b/src/libjin/Utils/utils.h @@ -1,5 +1,5 @@ -#ifndef __JIN_UTILS_H -#define __JIN_UTILS_H +#ifndef __LIBJIN_UTILS_H +#define __LIBJIN_UTILS_H #include "macros.h" #include "endian.h" |