diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-15 15:59:28 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-15 15:59:28 +0000 |
commit | eac3b61425e440aacc636412add3447498f1b5c8 (patch) | |
tree | 1b21eb3c055a405bece346be0a4ffbf1df8868de | |
parent | 75b1e3b934ba886809f2ac97cb334647bb0fbf5f (diff) | |
download | libnsgif-eac3b61425e440aacc636412add3447498f1b5c8.tar.gz libnsgif-eac3b61425e440aacc636412add3447498f1b5c8.tar.bz2 |
GCC 2.95 compatibility
svn path=/trunk/libnsgif/; revision=7097
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |