summaryrefslogtreecommitdiff
path: root/rijndael.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-02-28 08:14:22 +1100
committerDamien Miller <djm@mindrot.org>2001-02-28 08:14:22 +1100
commit4df5c76c2b217b3b487004731a13808ca6326bab (patch)
tree20ed66846f8101515d49666c0eb9263b81a1ddc7 /rijndael.c
parent6007f194839543b9f990c166fde9dfb615e94669 (diff)
- (djm) Detect endianness in configure and use it in rijndael.c. Fixes
"Bad packet length" bugs.
Diffstat (limited to 'rijndael.c')
-rw-r--r--rijndael.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rijndael.c b/rijndael.c
index aafc3c22..8b213db0 100644
--- a/rijndael.c
+++ b/rijndael.c
@@ -58,7 +58,7 @@ void gen_tabs __P((void));
#define byte(x,n) ((u1byte)((x) >> (8 * n)))
-#if BYTE_ORDER != LITTLE_ENDIAN
+#ifdef WORDS_BIGENDIAN
#define BYTE_SWAP
#endif