|
50 | 50 | #define__inline__ inline
|
51 | 51 | #endif
|
52 | 52 |
|
| 53 | +/* |
| 54 | + * Regarding bool, both PostgreSQL and Perl might use stdbool.h or not, |
| 55 | + * depending on configuration. If both agree, things are relatively harmless. |
| 56 | + * If not, things get tricky. If PostgreSQL does but Perl does not, define |
| 57 | + * HAS_BOOL here so that Perl does not redefine bool; this avoids compiler |
| 58 | + * warnings. If PostgreSQL does not but Perl does, we need to undefine bool |
| 59 | + * after we include the Perl headers; see below. |
| 60 | + */ |
| 61 | +#ifdefUSE_STDBOOL |
| 62 | +#defineHAS_BOOL 1 |
| 63 | +#endif |
| 64 | + |
53 | 65 |
|
54 | 66 | /*
|
55 | 67 | * Get the basic Perl API. We use PERL_NO_GET_CONTEXT mode so that our code
|
|