From: Howard Chu Date: Thu, 28 Oct 1999 07:27:28 +0000 (+0000) Subject: For Mingw32, added declarations for snprintf and vsnprintf X-Git-Tag: UCDATA_2_4~289 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ff2908ffb8376e2c5f610afcd36dbd5d3dad10bf;p=openldap For Mingw32, added declarations for snprintf and vsnprintf --- diff --git a/include/ac/stdarg.h b/include/ac/stdarg.h index c7b2d46c87..e37ba72e0d 100644 --- a/include/ac/stdarg.h +++ b/include/ac/stdarg.h @@ -21,4 +21,17 @@ # define HAVE_STDARG 1 #endif +/* + * These functions are not included amongst Mingw32 headers for some + * reason even though they are supported in the library + */ + +#if defined(__MINGW32__) && defined(HAVE_SNPRINTF) +int snprintf(char *, size_t, const char *, ...); +#endif + +#if defined(__MINGW32__) && defined(HAVE_VSNPRINTF) +int vsnprintf(char *, size_t, const char *, va_list); +#endif + #endif /* _AC_STDARG_H */