[llvm-commits] CVS: llvm/include/llvm/Support/DataTypes.h.in
Reid Spencer
reid at x10sys.com
Fri Sep 3 12:37:50 PDT 2004
Changes in directory llvm/include/llvm/Support:
DataTypes.h.in updated: 1.6 -> 1.7
---
Log message:
Provide correct definition of uint64_t for platforms that have only
u_int64_t defined.
---
Diffs of the changes: (+12 -0)
Index: llvm/include/llvm/Support/DataTypes.h.in
diff -u llvm/include/llvm/Support/DataTypes.h.in:1.6 llvm/include/llvm/Support/DataTypes.h.in:1.7
--- llvm/include/llvm/Support/DataTypes.h.in:1.6 Mon Jul 19 11:12:29 2004
+++ llvm/include/llvm/Support/DataTypes.h.in Fri Sep 3 14:37:39 2004
@@ -21,6 +21,8 @@
#ifndef SUPPORT_DATATYPES_H
#define SUPPORT_DATATYPES_H
+#include <llvm/Config/config.h>
+
// Note that this header's correct operation depends on __STDC_LIMIT_MACROS
// being defined. We would define it here, but in order to prevent Bad Things
// happening when system headers or C++ STL headers include stdint.h before
@@ -34,6 +36,16 @@
@INCLUDE_INTTYPES_H@
@INCLUDE_SYS_TYPES_H@
@INCLUDE_STDINT_H@
+
+// Handle incorrect definition of uint64_t as u_int64_t
+#ifndef HAVE_UINT64_T
+#ifdef HAVE_U_INT64_T
+typedef u_int64_t uint64_t;
+#else
+# error "Don't have a definition for uint64_t on this platform"
+#endif
+#endif
+
#else
// Visual C++ doesn't provide standard integer headers, but it does provide
// built-in data types.
More information about the llvm-commits
mailing list