diff options
author | Noah Misch | 2015-05-18 14:02:31 +0000 |
---|---|---|
committer | Noah Misch | 2015-05-18 14:02:31 +0000 |
commit | cac18a76bb6b08f1ecc2a85e46c9d2ab82dd9d23 (patch) | |
tree | 604d66a22a7a01e6d94c79174c9369dd01fa6c6d /src/port/snprintf.c | |
parent | b0ce385032d72d6acf1e330f733013553fe6affe (diff) |
Permit use of vsprintf() in PostgreSQL code.
The next commit needs it. Back-patch to 9.0 (all supported versions).
Diffstat (limited to 'src/port/snprintf.c')
-rw-r--r-- | src/port/snprintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/port/snprintf.c b/src/port/snprintf.c index 166374cabd6..0c779a601fc 100644 --- a/src/port/snprintf.c +++ b/src/port/snprintf.c @@ -99,6 +99,7 @@ /* Prevent recursion */ #undef vsnprintf #undef snprintf +#undef vsprintf #undef sprintf #undef vfprintf #undef fprintf @@ -178,7 +179,7 @@ pg_snprintf(char *str, size_t count, const char *fmt,...) return len; } -static int +int pg_vsprintf(char *str, const char *fmt, va_list args) { PrintfTarget target; |