Added
Link Here
|
1 |
--- programs/dtinfo/DtMmdb/schema/store_desc.C.orig 2021-12-14 19:59:51 UTC |
2 |
+++ programs/dtinfo/DtMmdb/schema/store_desc.C |
3 |
@@ -66,11 +66,11 @@ store_desc::store_desc(const char* name) : desc(name) |
4 |
mode_str = strdup(""); |
5 |
order_str = 0; |
6 |
|
7 |
-#ifdef MMDB_BIG_ENDIAN |
8 |
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ |
9 |
order_str = strdup("big_endian"); |
10 |
#endif |
11 |
|
12 |
-#ifdef MMDB_LITTLE_ENDIAN |
13 |
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ |
14 |
order_str = strdup("little_endian"); |
15 |
#endif |
16 |
|
17 |
@@ -87,11 +87,11 @@ store_desc::store_desc(int tp, const char* comment): |
18 |
|
19 |
order_str = 0; |
20 |
|
21 |
-#ifdef MMDB_BIG_ENDIAN |
22 |
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ |
23 |
order_str = strdup("big_endian"); |
24 |
#endif |
25 |
|
26 |
-#ifdef MMDB_LITTLE_ENDIAN |
27 |
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ |
28 |
order_str = strdup("little_endian"); |
29 |
#endif |
30 |
|