aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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