Browse Source

spit errors if 32- AND 64-bit wordsize is defined

Steffen Jaeckel 11 years ago
parent
commit
6dfb080810
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/headers/tomcrypt_cfg.h

+ 4 - 0
src/headers/tomcrypt_cfg.h

@@ -155,6 +155,10 @@ typedef ulong32 __attribute__((__may_alias__)) LTC_FAST_TYPE;
    #define ENDIAN_NEUTRAL
 #endif
 
+#if (defined(ENDIAN_32BITWORD) && defined(ENDIAN_64BITWORD))
+    #error Can not be 32 and 64 bit words...
+#endif
+
 /* gcc 4.3 and up has a bswap builtin; detect it by gcc version.
  * clang also supports the bswap builtin, and although clang pretends
  * to be gcc (macro-wise, anyway), clang pretends to be a version