summaryrefslogtreecommitdiff
path: root/src/port/snprintf.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2015-05-18 10:02:31 -0400
committerNoah Misch <noah@leadboat.com>2015-05-18 10:02:36 -0400
commitd5abbd11479d1bc2e1439d3764251f9cb3b60755 (patch)
tree7dde07f7dbabd3df385f4bde0e4524dddc713b68 /src/port/snprintf.c
parentf4c12b415f1ed07e681bab58f7d6520025edfe83 (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/port/snprintf.c b/src/port/snprintf.c
index c10a82a2884..e53356ff383 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;