aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-10-29 04:25:48 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-10-29 04:25:48 +0000
commit681453dc77697c7cf842bdefd3c5e4ef181bb9a0 (patch)
tree09ab56158306972ef05925f545123df6a2dc3d17
parent11911abf5cd6f91885b961e4386989e5a5399af3 (diff)
Pull in stdint.h here, if we have it. Some systems keep
the INT*_MAX macros there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9577 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/Support/DataTypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Support/DataTypes.h b/include/Support/DataTypes.h
index 39939d6d0a..4904bb31da 100644
--- a/include/Support/DataTypes.h
+++ b/include/Support/DataTypes.h
@@ -30,6 +30,10 @@
// 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_STDINT_H
+#include <stdint.h>
+#endif
+
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif