From 90eca5505fb9c48367990fa1b1b58b0e6ed64edd Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Tue, 28 Oct 2003 19:09:28 +0000 Subject: 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(-) (limited to 'Makefile.rules') diff --git a/Makefile.rules b/Makefile.rules index ae697354af..65599cc795 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 -- cgit v1.2.3-18-g5258