aboutsummaryrefslogtreecommitdiffstats
path: root/include/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h
index b41109ee5..0b4f6a485 100644
--- a/include/types.h
+++ b/include/types.h
@@ -21,6 +21,10 @@
#ifndef G10_TYPES_H
#define G10_TYPES_H
+#if HAVE_INTTYPES_H
+/* For uint64_t */
+#include <inttypes.h>
+#endif
/* The AC_CHECK_SIZEOF() in configure fails for some machines.
* we provide some fallback values here */
@@ -106,6 +110,9 @@
#elif SIZEOF_UNSIGNED_LONG_LONG == 8
typedef unsigned long long u64;
#define HAVE_U64_TYPEDEF
+ #elif SIZEOF_UINT64_T == 8
+ typedef uint64_t u64;
+ #define HAVE_U64_TYPEDEF
#endif
#endif