parent
ab5f34d7fc
commit
99d71fdba3
@ -0,0 +1,38 @@
|
||||
diff -up libtomcrypt-912eff4949f46c0b426d2180429a6fa4c1144f1d/src/headers/tomcrypt_cfg.h.than libtomcrypt-912eff4949f46c0b426d2180429a6fa4c1144f1d/src/headers/tomcrypt_cfg.h
|
||||
--- libtomcrypt-912eff4949f46c0b426d2180429a6fa4c1144f1d/src/headers/tomcrypt_cfg.h.than 2016-01-23 13:11:30.000000000 -0500
|
||||
+++ libtomcrypt-912eff4949f46c0b426d2180429a6fa4c1144f1d/src/headers/tomcrypt_cfg.h 2016-03-09 09:30:52.655998598 -0500
|
||||
@@ -55,6 +55,25 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const
|
||||
* use the portable [slower] macros.
|
||||
*/
|
||||
|
||||
+#if defined(__powerpc64__)
|
||||
+#define ENDIAN_64BITWORD
|
||||
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||
+#define ENDIAN_BIG
|
||||
+#else
|
||||
+#define ENDIAN_LITTLE
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
+#if defined(__s390x__)
|
||||
+#define ENDIAN_64BITWORD
|
||||
+#define ENDIAN_BIG
|
||||
+#endif
|
||||
+
|
||||
+#if defined(__s390__)
|
||||
+#define ENDIAN_32BITWORD
|
||||
+#define ENDIAN_BIG
|
||||
+#endif
|
||||
+
|
||||
/* detect x86-32 machines somewhat */
|
||||
#if !defined(__STRICT_ANSI__) && !defined(__x86_64__) && !defined(_WIN64) && ((defined(_MSC_VER) && defined(WIN32)) || (defined(__GNUC__) && (defined(__DJGPP__) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__i386__))))
|
||||
#define ENDIAN_LITTLE
|
||||
@@ -94,7 +113,7 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const
|
||||
/* this is the "32-bit at least" data type
|
||||
* Re-define it to suit your platform but it must be at least 32-bits
|
||||
*/
|
||||
-#if defined(__x86_64__) || (defined(__sparc__) && defined(__arch64__))
|
||||
+#if defined(__x86_64__) || defined(__powerpc64__) || defined(__s390x__) || (defined(__sparc__) && defined(__arch64__))
|
||||
typedef unsigned ulong32;
|
||||
#else
|
||||
typedef unsigned long ulong32;
|
Loading…
Reference in new issue