aboutsummaryrefslogtreecommitdiff
path: root/include/Support/DataTypes.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-10-28 19:11:29 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-10-28 19:11:29 +0000
commit8be7aa11c36f9ccbfddca0744321740a4558db94 (patch)
tree597805749a81a990df66ca6e5ffec6c26eb93b71 /include/Support/DataTypes.h
parent90eca5505fb9c48367990fa1b1b58b0e6ed64edd (diff)
Remove __STDC_LIMIT_MACROS from here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/Support/DataTypes.h')
-rw-r--r--include/Support/DataTypes.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/Support/DataTypes.h b/include/Support/DataTypes.h
index e2a08ea2ad..39939d6d0a 100644
--- a/include/Support/DataTypes.h
+++ b/include/Support/DataTypes.h
@@ -25,7 +25,10 @@
#include "Config/config.h"
-#define __STDC_LIMIT_MACROS 1
+// 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
+// we define it here, we define it on the g++ command line (in Makefile.rules).
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>