aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Utils
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-09-08 13:09:06 +0800
committerchai <chaifix@163.com>2018-09-08 13:09:06 +0800
commit4798e70dcbbedb55de8e9f8e321e8fad7b9783f6 (patch)
treef4740d59b561163b260f2f29467cfffdd92c4d9e /src/libjin/Utils
parent36f7e3e5542f3cfee11b34ce497fcb877b3462bf (diff)
*update
Diffstat (limited to 'src/libjin/Utils')
-rw-r--r--src/libjin/Utils/endian.h14
-rw-r--r--src/libjin/Utils/macros.h4
-rw-r--r--src/libjin/Utils/utils.h4
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"