forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit382092a
committed
Prevent redeclaration of typedef yyscan_t
Fix for1f0de66: We need to prevent redeclaration of typedefyyscan_t. (This will work with C11 but not currently with C99.) Thegenerated scanner files provide their own typedef, but we also need toprovide one for the interfaces that we expose. So we need to add somepreprocessor guards to avoid a redefinition. (This is how thegenerated scanner files do it internally as well.) This wayeverything now works independent of the order in which things areincluded.Discussion:https://www.postgresql.org/message-id/flat/eb6faeac-2a8a-4b69-9189-c33c520e5b7b@eisentraut.org1 parent9aea73f commit382092a
2 files changed
+6
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
| 65 | + | |
| 66 | + | |
65 | 67 |
| |
| 68 | + | |
66 | 69 |
| |
67 | 70 |
| |
68 | 71 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
| 20 | + | |
19 | 21 |
| |
| 22 | + | |
20 | 23 |
| |
21 | 24 |
| |
22 | 25 |
| |
|
0 commit comments
Comments
(0)