aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-09-03 02:52:06 +0000
committerDavid Shaw <[email protected]>2003-09-03 02:52:06 +0000
commit8ef5348dd4464acdf8e26090500b3dc619d33463 (patch)
tree7dcdd4a050ea2a7fecc04b8e667e7f364b5dc4a7
parent* keylist.c (show_policy_url): Policy URLs might be UTF8. (diff)
downloadgnupg-8ef5348dd4464acdf8e26090500b3dc619d33463.tar.gz
gnupg-8ef5348dd4464acdf8e26090500b3dc619d33463.zip
* types.h: Non-POSIX environments may have uint64_t but not UINT64_C.
-rw-r--r--include/ChangeLog5
-rw-r--r--include/types.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 4a8ef7551..0bb4a57d8 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-02 David Shaw <[email protected]>
+
+ * types.h: Non-POSIX environments may have uint64_t but not
+ UINT64_C.
+
2003-07-30 Werner Koch <[email protected]>
* util.h: Replaced some __MINGW32__ by _WIN32.
diff --git a/include/types.h b/include/types.h
index 8abfa6e87..383f01dc5 100644
--- a/include/types.h
+++ b/include/types.h
@@ -101,7 +101,7 @@ typedef unsigned long u32;
*/
#ifndef HAVE_U64_TYPEDEF
#undef u64 /* maybe there is a macro with this name */
-#if SIZEOF_UINT64_T == 8
+#if SIZEOF_UINT64_T == 8 && defined(UINT64_C)
typedef uint64_t u64;
#define U64_C(c) (UINT64_C(c))
#define HAVE_U64_TYPEDEF