1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-17 01:02:17 +03:00

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.
This commit is contained in:
Tom Lane
2007-11-22 17:47:46 +00:00
parent 4fc32d5891
commit dfd7208424
2 changed files with 11 additions and 1 deletions

View File

@@ -33,7 +33,7 @@
* ENHANCEMENTS, OR MODIFICATIONS. * ENHANCEMENTS, OR MODIFICATIONS.
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.67.4.7 2007/06/28 17:50:24 tgl Exp $ * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.67.4.8 2007/11/22 17:47:46 tgl Exp $
* *
**********************************************************************/ **********************************************************************/
@@ -70,6 +70,11 @@
#define pTHX void #define pTHX void
#endif #endif
/* perl may have a different width of "bool", don't buy it */
#ifdef bool
#undef bool
#endif
/********************************************************************** /**********************************************************************
* The information we cache about loaded procedures * The information we cache about loaded procedures

View File

@@ -3,6 +3,11 @@
#include "XSUB.h" #include "XSUB.h"
#include "ppport.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_DEBUG(void);
int spi_LOG(void); int spi_LOG(void);