diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-11-22 17:47:46 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-11-22 17:47:46 +0000 |
commit | dfd7208424e55a391ab9f2924d752055580d2ba0 (patch) | |
tree | 9fbffc6e2e5135242d816b6d17fb616a5263edc3 /src/pl/plperl/spi_internal.h | |
parent | 4fc32d5891e1e0a6e28248cf29b8bb58e82282ee (diff) |
Prevent Perl from introducing a possibly-incompatible definition of type
"bool" into plperl.c. This has always been a hazard since Perl allows a
platform-specific choice to define bool as int rather than char, but
evidently this didn't happen on any platform we support ... until OS X 10.5.
Per report from Brandon Maust.
Back-patch as far as 8.0 --- a bit arbitrary, but it seems unlikely anyone
will be trying to port 7.x onto new platforms.
Diffstat (limited to 'src/pl/plperl/spi_internal.h')
-rw-r--r-- | src/pl/plperl/spi_internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pl/plperl/spi_internal.h b/src/pl/plperl/spi_internal.h index b66f43eb2ec..628b4143fcb 100644 --- a/src/pl/plperl/spi_internal.h +++ b/src/pl/plperl/spi_internal.h @@ -3,6 +3,11 @@ #include "XSUB.h" #include "ppport.h" +/* perl may have a different width of "bool", don't buy it */ +#ifdef bool +#undef bool +#endif + int spi_DEBUG(void); int spi_LOG(void); |