summaryrefslogtreecommitdiff
path: root/src/ltc/headers/tomcrypt_cfg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ltc/headers/tomcrypt_cfg.h')
-rw-r--r--src/ltc/headers/tomcrypt_cfg.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ltc/headers/tomcrypt_cfg.h b/src/ltc/headers/tomcrypt_cfg.h
index b7d0d7e5..96e809a6 100644
--- a/src/ltc/headers/tomcrypt_cfg.h
+++ b/src/ltc/headers/tomcrypt_cfg.h
@@ -93,6 +93,24 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const char *s1, const char *s2);
#define LTC_FAST_TYPE unsigned long
#endif
+/* fix for MSVC ...evil! */
+#ifdef _MSC_VER
+ #define CONST64(n) n ## ui64
+ typedef unsigned __int64 ulong64;
+#else
+ #define CONST64(n) n ## ULL
+ typedef unsigned long long ulong64;
+#endif
+
+/* 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__))
+ typedef unsigned ulong32;
+#else
+ typedef unsigned long ulong32;
+#endif
+
/* detect sparc and sparc64 */
#if defined(__sparc__)
#define ENDIAN_BIG