forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7ba7986
committed
Fix interaction of Perl and stdbool.h
Revert the PL/Perl-specific change in9a95a77. We must not prevent Perl fromusing stdbool.h when it has been built to do so, even if it uses anincompatible size. Otherwise, we would be imposing our bool on Perl,which will lead to crashes because of the size mismatch.Instead, we undef bool after including the Perl headers, as we didpreviously, but now only if we are not using stdbool.h ourselves.Record that choice in c.h as USE_STDBOOL. This will also make it easierto apply that coding pattern elsewhere if necessary.1 parentf1a074b commit7ba7986
2 files changed
+14
-5
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
268 | 268 |
| |
269 | 269 |
| |
270 | 270 |
| |
| 271 | + | |
271 | 272 |
| |
272 | 273 |
| |
273 | 274 |
| |
|
Lines changed: 13 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 | 53 |
| |
59 | 54 |
| |
60 | 55 |
| |
| |||
96 | 91 |
| |
97 | 92 |
| |
98 | 93 |
| |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
99 | 107 |
| |
100 | 108 |
| |
101 | 109 |
| |
|
0 commit comments
Comments
(0)