summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-12-20 00:51:25 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-12-20 00:51:25 +0000
commit76898cd330297d16c67c5e7c6024440ff4343336 (patch)
tree2c87cbf16c1f27db956ecbf53f9a780cdc719054 /src/include/c.h
parent095d83e1294ab54f1a2784b4b9e82d8f2281e4dd (diff)
downloadpostgresql-76898cd330297d16c67c5e7c6024440ff4343336.tar.gz
Avoid compiler warnings on systems that have snprintf and/or vsnprintf
but do not bother to declare them in <stdio.h>. Seems to be a more common omission than you'd think...
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 174d20cb1c..53fe14e70a 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.61 1999/07/17 20:18:25 momjian Exp $
+ * $Id: c.h,v 1.62 1999/12/20 00:51:21 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -789,11 +789,11 @@ extern char *vararg_format(const char *fmt,...);
* in config.h we haven't yet included anything that defines size_t...
*/
-#ifndef HAVE_SNPRINTF
+#ifndef HAVE_SNPRINTF_DECL
extern int snprintf(char *str, size_t count, const char *fmt,...);
#endif
-#ifndef HAVE_VSNPRINTF
+#ifndef HAVE_VSNPRINTF_DECL
extern int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
#endif