From 90eca5505fb9c48367990fa1b1b58b0e6ed64edd Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Tue, 28 Oct 2003 19:09:28 +0000 Subject: [PATCH] Add __STDC_LIMIT_MACROS here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9549 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.rules b/Makefile.rules index ae697354af4..65599cc7953 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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