]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
protect vsnprintf() with #ifdefs
authorwessels <>
Fri, 31 Oct 1997 00:48:28 +0000 (00:48 +0000)
committerwessels <>
Fri, 31 Oct 1997 00:48:28 +0000 (00:48 +0000)
include/snprintf.h

index 02d06ba276e1e43aeff5ec81546f79883e8a1822..70da03f0ebe4fecebc622f4464f6a43d546f6e4d 100644 (file)
@@ -27,10 +27,19 @@ XX **NO VARARGS ** XX
 #endif
 
 /* you can have ANSI C definitions */
+
+#if !HAVE_SNPRINTF
 #ifdef HAVE_STDARGS
 int snprintf(char *str, size_t count, const char *fmt,...);
-int vsnprintf(char *str, size_t count, const char *fmt, va_list arg);
 #else
 int snprintf();
+#endif
+#endif
+
+#if !HAVE_VSNPRINTF
+#ifdef HAVE_STDARGS
+int vsnprintf(char *str, size_t count, const char *fmt, va_list arg);
+#else
 int vsnprintf();
 #endif
+#endif