Subject: | Doesn't compile under Leopard |
perl.h depends on bool, which is #undef'd in c-config.h
...
cc -c -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -
fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -O3 -
DVERSION=\"1.20\" -DXS_VERSION=\"1.20\" "-I/System/Library/Perl/5.8.8/darwin-thread-
multi-2level/CORE" Curses.c
In file included from Curses.c:32:
/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE/perl.h:2698: error: syntax
error before 'bool'
/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE/perl.h:2698: warning: no
semicolon at end of struct or union
/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE/perl.h:2701: error: syntax
error before '}' token
...
And here's the patch:
--- ../Curses-1.20/hints/c-darwin.h 2005-12-07 01:20:36.000000000 -0600
+++ hints/c-darwin.h 2008-02-14 12:52:43.000000000 -0600
@@ -27,5 +27,3 @@
#define C_TOUCHLINE
#define C_TOUCH3ARGS
#undef C_TOUCH4ARGS
-
-#undef bool