summaryrefslogtreecommitdiff
path: root/third_party/milenage/rijndael.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/milenage/rijndael.c')
-rw-r--r--third_party/milenage/rijndael.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/third_party/milenage/rijndael.c b/third_party/milenage/rijndael.c
index 72ff15f2..86557b92 100644
--- a/third_party/milenage/rijndael.c
+++ b/third_party/milenage/rijndael.c
@@ -18,7 +18,11 @@
*
*-----------------------------------------------------------------*/
-#define LITTLE_ENDIAN /* For INTEL architecture */
+#include <pj/types.h>
+
+#if defined(PJ_IS_LITTLE_ENDIAN) && PJ_IS_LITTLE_ENDIAN != 0
+# define LITTLE_ENDIAN /* For INTEL architecture */
+#endif
typedef unsigned char u8;
typedef unsigned int u32;