From c03e7891d87e56e40aebb96928731df2a9c8000b Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 31 Oct 1997 00:48:28 +0000 Subject: [PATCH] protect vsnprintf() with #ifdefs --- include/snprintf.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/snprintf.h b/include/snprintf.h index 02d06ba276..70da03f0eb 100644 --- a/include/snprintf.h +++ b/include/snprintf.h @@ -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 -- 2.47.2