[llvm-commits] CVS: llvm/include/Support/DataTypes.h.in

Chris Lattner lattner at cs.uiuc.edu
Fri Jun 4 14:06:02 PDT 2004


Changes in directory llvm/include/Support:

DataTypes.h.in updated: 1.1 -> 1.2

---
Log message:

Make this work with VC++


---
Diffs of the changes:  (+7 -0)

Index: llvm/include/Support/DataTypes.h.in
diff -u llvm/include/Support/DataTypes.h.in:1.1 llvm/include/Support/DataTypes.h.in:1.2
--- llvm/include/Support/DataTypes.h.in:1.1	Mon Feb 23 16:07:26 2004
+++ llvm/include/Support/DataTypes.h.in	Fri Jun  4 14:01:49 2004
@@ -30,9 +30,16 @@
 # error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
 #endif
 
+#ifndef _MSC_VER
 // Note that <inttypes.h> includes <stdint.h>, if this is a C99 system.
 @INCLUDE_INTTYPES_H@
 @INCLUDE_SYS_TYPES_H@
+#else
+// Visual C++ doesn't provide standard integer headers, but it does provide
+// built-in data types.
+typedef __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#endif
 
 #if !defined(INT64_MAX)
 /* We couldn't determine INT64_MAX; default it. */





More information about the llvm-commits mailing list