[llvm-commits] CVS: llvm/include/llvm/Support/DataTypes.h.in
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 3 09:15:59 PST 2004
Changes in directory llvm/include/llvm/Support:
DataTypes.h.in updated: 1.15 -> 1.16
---
Log message:
defining __STDC_LIMIT_MACROS on the command line is not really necessary
for Visual Studio, and is a bit of a pain when you want to include the
LLVM headers from your own project, so I moved the check a bit down into
the Unix case to avoid the hassle... Here is a patch
Patch by Morten Ofstad!
---
Diffs of the changes: (+6 -5)
Index: llvm/include/llvm/Support/DataTypes.h.in
diff -u llvm/include/llvm/Support/DataTypes.h.in:1.15 llvm/include/llvm/Support/DataTypes.h.in:1.16
--- llvm/include/llvm/Support/DataTypes.h.in:1.15 Tue Oct 26 11:15:18 2004
+++ llvm/include/llvm/Support/DataTypes.h.in Wed Nov 3 11:15:45 2004
@@ -23,6 +23,12 @@
#include "llvm/Config/config.h"
+#undef HAVE_SYS_TYPES_H
+#undef HAVE_INTTYPES_H
+#undef HAVE_STDINT_H
+
+#ifndef _MSC_VER
+
// 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
@@ -31,11 +37,6 @@
# error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
#endif
-#undef HAVE_SYS_TYPES_H
-#undef HAVE_INTTYPES_H
-#undef HAVE_STDINT_H
-
-#ifndef _MSC_VER
// Note that <inttypes.h> includes <stdint.h>, if this is a C99 system.
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
More information about the llvm-commits
mailing list