]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Add HAVE_VSNPRINTF macro to prevent extra declarations if already defined by the OS.
authorDanny Mayer <mayer@ntp.org>
Wed, 27 Aug 2003 02:19:32 +0000 (22:19 -0400)
committerDanny Mayer <mayer@ntp.org>
Wed, 27 Aug 2003 02:19:32 +0000 (22:19 -0400)
bk: 3f4c1534rCyP3PeBd006BZzgad66Ug

include/l_stdlib.h
ports/winnt/include/config.h

index 546139191038c5a1d78c75cc01b2845c34caf1a1..3f242b7994a0681cca4d87a486eaabf65669bab4 100644 (file)
@@ -152,7 +152,9 @@ extern      int     snprintf        P((char *, size_t, const char *, ...));
 #endif
 
 /* HMS: does this need further protection? */
+#ifndef HAVE_VSNPRINTF
 extern int     vsnprintf       P((char *, size_t, const char *, va_list));
+#endif
 
 #ifdef DECL_SRAND48_0
 extern void    srand48         P((long));
index 41fee1f25009c82927af2ffbfbecae3ba1a9bf3c..cc7d10b7c9e84120d4149479a3a9e44f5b428d04 100644 (file)
@@ -84,6 +84,7 @@ int NT_set_process_priority(void);    /* Define this function */
 # define HAVE_SETVBUF
 # define HAVE_VSPRINTF
 # define HAVE_SNPRINTF
+# define HAVE_VSNPRINTF
 # define HAVE_PROTOTYPES               /* from ntpq.mak */
 # define HAVE_MEMMOVE
 # define HAVE_TERMIOS_H