* types.h: Try and use uint64_t for a 64-bit type.

This commit is contained in:
David Shaw 2003-02-12 04:45:51 +00:00
parent a338c1db91
commit 911cc7e6ab
2 changed files with 11 additions and 0 deletions

View 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.

View File

@ -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