aboutsummaryrefslogtreecommitdiff
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:35 -0400
commitf7c4fe7d95a3f323df3b0dc3bffff5fa9d708a0c (patch)
tree19ba0a69c34a50b1838240828d3703573da08f4b /src/port/snprintf.c
parent7a0d48ac7f5ad660414f1b0b6a36cb2b2b7a3667 (diff)
downloadpostgresql-f7c4fe7d95a3f323df3b0dc3bffff5fa9d708a0c.tar.gz
postgresql-f7c4fe7d95a3f323df3b0dc3bffff5fa9d708a0c.zip
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 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;