diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-04-11 13:22:56 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-04-11 13:22:56 -0400 |
commit | d7cff12c4c035b7cf12bb8454824f48f13018730 (patch) | |
tree | 15922db30ea117fa89c323cf8d4b9abca075fbcf /src/backend/utils/adt/timestamp.c | |
parent | 9cb92334092fa75afc62a71243bbc1f4612ecfa4 (diff) | |
download | postgresql-d7cff12c4c035b7cf12bb8454824f48f13018730.tar.gz postgresql-d7cff12c4c035b7cf12bb8454824f48f13018730.zip |
Add macro PGWARNING, and make PGERROR available on all platforms.
We'd previously noted the need for coping with Windows headers
that provide some other definition of macro "ERROR" than elog.h
does. It turns out that R also wants to define ERROR, and
WARNING too. PL/R has been working around this in a hacky way
that broke when we recently changed the numeric value of ERROR.
To let them have a more future-proof solution, provide an
alternate macro PGWARNING for WARNING, and make PGERROR visible
always, not only when #ifdef WIN32.
Discussion: https://postgr.es/m/CADK3HHK6iMChd1yoOqssxBn5Z14Zar8Ztr3G-N_fuG7F8YTP3w@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/timestamp.c')
0 files changed, 0 insertions, 0 deletions