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:37 -0400
commit1e6652aea503b16ea99662832d07241bf47f21f3 (patch)
treef08dcf1d647d38200bbbf1aee4516c0eae50f655 /src/port/snprintf.c
parent439ff9b6b9de435e1c92d05221cfbcb7ff80e150 (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;