forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd7cff12
committed
Add macro PGWARNING, and make PGERROR available on all platforms.
We'd previously noted the need for coping with Windows headersthat provide some other definition of macro "ERROR" than elog.hdoes. It turns out that R also wants to define ERROR, andWARNING too. PL/R has been working around this in a hacky waythat broke when we recently changed the numeric value of ERROR.To let them have a more future-proof solution, provide analternate macro PGWARNING for WARNING, and make PGERROR visiblealways, not only when #ifdef WIN32.Discussion:https://postgr.es/m/CADK3HHK6iMChd1yoOqssxBn5Z14Zar8Ztr3G-N_fuG7F8YTP3w@mail.gmail.com1 parent9cb9233 commitd7cff12
1 file changed
+9
-7
lines changedLines changed: 9 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
| 48 | + | |
54 | 49 |
| |
55 | 50 |
| |
56 | 51 |
| |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
|
0 commit comments
Comments
(0)