From 3060423700996b7eca90dfd2ba746d36abdfd15b Mon Sep 17 00:00:00 2001 From: François Revel Date: Wed, 19 Jan 2011 01:42:54 +0000 Subject: Remove odd WARNFLAGS copied from Atari stuff. Silence warning about redeclared strcasestr(). svn path=/trunk/netsurf/; revision=11381 --- Makefile.defaults | 5 ----- utils/config.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Makefile.defaults b/Makefile.defaults index 32bfe8f18..1055be515 100644 --- a/Makefile.defaults +++ b/Makefile.defaults @@ -377,11 +377,6 @@ ifeq ($(TARGET),cocoa) # Optimisation levels CFLAGS += -O2 -Wuninitialized - WARNFLAGS = -W -Wundef -Wpointer-arith \ - -Wcast-align -Wwrite-strings -Wstrict-prototypes \ - -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \ - -Wnested-externs -Wl,-t - endif # Include any local configuration diff --git a/utils/config.h b/utils/config.h index 058662a8c..416d642b1 100644 --- a/utils/config.h +++ b/utils/config.h @@ -31,7 +31,7 @@ char *strndup(const char *s, size_t n); #endif -#if (defined(_GNU_SOURCE)) +#if (defined(_GNU_SOURCE) || defined(__APPLE__)) #define HAVE_STRCASESTR #else #undef HAVE_STRCASESTR -- cgit v1.2.3