From 03f17644b42f77aae7827b53128aaf209869092b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 15 Apr 2009 15:57:36 +0000 Subject: GCC 2.95 compatibility svn path=/trunk/libnsbmp/; revision=7096 --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 88741e1..28b3fa3 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,20 @@ COMPONENT_TYPE ?= lib-static include build/makefiles/Makefile.tools # Toolchain flags -WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \ +WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ -Wmissing-declarations -Wnested-externs -Werror -pedantic -CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -I$(CURDIR)/include/ \ +ifneq ($(GCCVER),2) + WARNFLAGS := $(WARNFLAGS) -Wextra +endif +CFLAGS := $(CFLAGS) -D_BSD_SOURCE -I$(CURDIR)/include/ \ -I$(CURDIR)/src $(WARNFLAGS) +ifneq ($(GCCVER),2) + CFLAGS := $(CFLAGS) -std=c99 +else + # __inline__ is a GCCism + CFLAGS := $(CFLAGS) -Dinline="__inline__" +endif include build/makefiles/Makefile.top -- cgit v1.2.3