Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf608f3b

Browse files
committed
Prevent Perl from introducing a possibly-incompatible definition of type
"bool" into plperl.c. This has always been a hazard since Perl allows aplatform-specific choice to define bool as int rather than char, butevidently 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 anyonewill be trying to port 7.x onto new platforms.
1 parentd9bc7a3 commitf608f3b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/pl/plperl/plperl.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
99
* Portions Copyright (c) 1995, Regents of the University of California
1010
*
11-
* $PostgreSQL: pgsql/src/pl/plperl/plperl.h,v 1.6 2007/01/05 22:20:01 momjian Exp $
11+
* $PostgreSQL: pgsql/src/pl/plperl/plperl.h,v 1.7 2007/11/22 17:47:28 tgl Exp $
1212
*/
1313

1414
#ifndefPL_PERL_H
@@ -38,6 +38,11 @@
3838
#definepTHX void
3939
#endif
4040

41+
/* perl may have a different width of "bool", don't buy it */
42+
#ifdefbool
43+
#undef bool
44+
#endif
45+
4146
/* routines from spi_internal.c */
4247
intspi_DEBUG(void);
4348
intspi_LOG(void);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp