* types.h: Try and use uint64_t for a 64-bit type.
authorDavid Shaw <dshaw@jabberwocky.com>
Wed, 12 Feb 2003 04:45:51 +0000 (04:45 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Wed, 12 Feb 2003 04:45:51 +0000 (04:45 +0000)
include/ChangeLog
include/types.h

index f043ddc..97ae7b6 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-11  David Shaw  <dshaw@jabberwocky.com>
+
+       * types.h: Try and use uint64_t for a 64-bit type.
+
 2003-02-04  David Shaw  <dshaw@jabberwocky.com>
 
        * cipher.h: Add constants for new SHAs.
index b41109e..0b4f6a4 100644 (file)
 #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 */
   #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