aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-20 04:39:40 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-20 04:39:40 +0000
commitb8ad6e7998f4ecbdee388f4ac3171f77e30964bb (patch)
tree7e7e7fea4f09a462cfb8c43b2b819bb3fc6a4341
parent460f20bfba8a95d5a5b3d317c948730bd84ec731 (diff)
added nested functions support on Mac OS X so that PDP builds
svn path=/trunk/externals/pdp/; revision=8849
-rw-r--r--Makefile.config.in4
1 files changed, 4 insertions, 0 deletions
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)\" \