aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-03 17:15:45 +0000
committerChris Lattner <sabre@nondot.org>2004-11-03 17:15:45 +0000
commit5200ad1b344ab73139ae798a34513065c2dfde52 (patch)
treee21b54b56532e8668c677a2f28fa2e15facd8343 /include/llvm
parent64aeb0092811224bcac16b292e05f38c7ba62a3c (diff)
downloadexternal_llvm-5200ad1b344ab73139ae798a34513065c2dfde52.zip
external_llvm-5200ad1b344ab73139ae798a34513065c2dfde52.tar.gz
external_llvm-5200ad1b344ab73139ae798a34513065c2dfde52.tar.bz2
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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17450 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Support/DataTypes.h.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/Support/DataTypes.h.in b/include/llvm/Support/DataTypes.h.in
index 4fc2d07..d5d1fc6 100644
--- a/include/llvm/Support/DataTypes.h.in
+++ b/include/llvm/Support/DataTypes.h.in
@@ -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>