1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Suppress warnings on platforms where fprintf is a macro (eg, recent

Fedora).  This was already done by somebody for the core flex files,
but these contrib files seem to have been missed.
This commit is contained in:
Tom Lane
2005-10-15 20:37:36 +00:00
parent b562639561
commit ad148c4154
3 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@
#define YY_READ_BUF_SIZE 16777216
/* Avoid exit() on fatal scanner errors (a bit ugly -- see yy_fatal_error) */
#undef fprintf
#define fprintf(file, fmt, msg) ereport(ERROR, (errmsg_internal("%s", msg)))
/* Handles to the buffer that the lexer uses internally */