|
@@ -91,9 +91,6 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const char *s1, const char *s2);
|
|
#define ENDIAN_LITTLE
|
|
#define ENDIAN_LITTLE
|
|
#define ENDIAN_64BITWORD
|
|
#define ENDIAN_64BITWORD
|
|
#define LTC_FAST
|
|
#define LTC_FAST
|
|
- #if defined(_ILP32) || defined(__ILP32__)
|
|
|
|
- #define ENDIAN_64BITWORD_X32
|
|
|
|
- #endif
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/* detect PPC32 */
|
|
/* detect PPC32 */
|
|
@@ -178,6 +175,11 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const char *s1, const char *s2);
|
|
#define LTC_FAST
|
|
#define LTC_FAST
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+/* Detect ILP32, commonly known as x32 on Linux and also possible on AIX */
|
|
|
|
+#if defined(_ILP32) || defined(__ILP32__)
|
|
|
|
+ #define ENDIAN_64BITWORD_ILP32
|
|
|
|
+#endif
|
|
|
|
+
|
|
/* endianness fallback */
|
|
/* endianness fallback */
|
|
#if !defined(ENDIAN_BIG) && !defined(ENDIAN_LITTLE)
|
|
#if !defined(ENDIAN_BIG) && !defined(ENDIAN_LITTLE)
|
|
#if defined(_BYTE_ORDER) && _BYTE_ORDER == _BIG_ENDIAN || \
|
|
#if defined(_BYTE_ORDER) && _BYTE_ORDER == _BIG_ENDIAN || \
|