From b8ad6e7998f4ecbdee388f4ac3171f77e30964bb Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 20 Oct 2007 04:39:40 +0000 Subject: added nested functions support on Mac OS X so that PDP builds svn path=/trunk/externals/pdp/; revision=8849 --- Makefile.config.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.config.in') diff --git a/Makefile.config.in b/Makefile.config.in index 446523e..4220d6d 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -36,6 +36,10 @@ PDP_AFLAGS = PDP_CFLAGS += $(SDL_CFLAGS) $(PDP_EXTRA_CFLAGS) -DPDP_VERSION=\"$(PDP_VERSION)\" +ifeq ($(shell uname -s),Darwin) + PDP_CFLAGS += -fnested-functions +endif + #PDP_CFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math \ # -Wall -W -Wstrict-prototypes \ # -Wno-unused -Wno-parentheses -Wno-switch -DPDP_VERSION=\"$(PDP_VERSION)\" \ -- cgit v1.2.1