66 * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
77 * Portions Copyright (c) 1994, Regents of the University of California
88 *
9- * $PostgreSQL: pgsql/src/include/port.h,v 1.105 2006/10/19 20:56:22 tgl Exp $
9+ * $PostgreSQL: pgsql/src/include/port.h,v 1.106 2006/11/28 01:12:33 adunstan Exp $
1010 *
1111 *-------------------------------------------------------------------------
1212 */
@@ -145,6 +145,9 @@ extern unsigned char pg_tolower(unsigned char ch);
145145#ifdef sprintf
146146#undef sprintf
147147#endif
148+ #ifdef vfprintf
149+ #undef vfprintf
150+ #endif
148151#ifdef fprintf
149152#undef fprintf
150153#endif
@@ -161,6 +164,7 @@ extern int
161164pg_sprintf (char * str ,const char * fmt ,...)
162165/* This extension allows gcc to check the format string */
163166__attribute__((format (printf ,2 ,3 )));
167+ extern int pg_vfprintf (FILE * stream ,const char * fmt ,va_list args );
164168extern int
165169pg_fprintf (FILE * stream ,const char * fmt ,...)
166170/* This extension allows gcc to check the format string */
@@ -179,12 +183,14 @@ __attribute__((format(printf, 1, 2)));
179183#define vsnprintf (...)pg_vsnprintf(__VA_ARGS__)
180184#define snprintf (...)pg_snprintf(__VA_ARGS__)
181185#define sprintf (...)pg_sprintf(__VA_ARGS__)
186+ #define vfprintf (...)pg_vfprintf(__VA_ARGS__)
182187#define fprintf (...)pg_fprintf(__VA_ARGS__)
183188#define printf (...)pg_printf(__VA_ARGS__)
184189#else
185190#define vsnprintf pg_vsnprintf
186191#define snprintf pg_snprintf
187192#define sprintf pg_sprintf
193+ #define vfprintf pg_vfprintf
188194#define fprintf pg_fprintf
189195#define printf pg_printf
190196#endif