]> granicus.if.org Git - postgresql/commit
Deal with C++ incompatibility of sys_nerr declaration by taking it out
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Jan 2001 00:59:26 +0000 (00:59 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Jan 2001 00:59:26 +0000 (00:59 +0000)
commit023a48b811d8e0a288e2bf999bb4f3e028f5d0c9
treea283db4d46bbd64cdaf91426b87bc4f816e5e9d0
parent37fd19845679f7648e09c61bbaf7199ca713f79b
Deal with C++ incompatibility of sys_nerr declaration by taking it out
of c.h altogether, and putting it into the only places that use it
(elog.c and exc.c), instead.  Modify these routines to check for a
NULL or empty-string return from strerror, too, since some platforms
define strerror to return empty string for unknown errors (what a useless
definition that is ...).  Clean up some cruft in ExcPrint while at it.
src/backend/utils/error/elog.c
src/backend/utils/error/exc.c
src/include/c.h