Add __STDC_LIMIT_MACROS here.
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 28 Oct 2003 19:09:28 +0000 (19:09 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 28 Oct 2003 19:09:28 +0000 (19:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9549 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index ae697354af4a1723225428f030bc23c838ac8540..65599cc795399753b1cb1a537302d1b106a27558 100644 (file)
@@ -288,8 +288,10 @@ STRIP = $(PLATFORMSTRIPOPTS)
 STRIP_WARN_MSG = "(without symbols)"
 endif
 
-# Allow gnu extensions...
+# Allow GNU extensions:
 CPPFLAGS += -D_GNU_SOURCE
+# Pull in limit macros from stdint.h, even in C++:
+CPPFLAGS += -D__STDC_LIMIT_MACROS
 
 CompileWarnings  := -Wall -W  -Wwrite-strings -Wno-unused
 CompileCommonOpts := $(CompileWarnings) -fshort-enums