]> git.sur5r.net Git - openldap/commitdiff
For Mingw32, added declarations for snprintf and vsnprintf
authorHoward Chu <hyc@openldap.org>
Thu, 28 Oct 1999 07:27:28 +0000 (07:27 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 28 Oct 1999 07:27:28 +0000 (07:27 +0000)
include/ac/stdarg.h

index c7b2d46c87f8f9438d7475fd47b149db908ef5cf..e37ba72e0d2fc16b0ca5e3efee65fe121765eec0 100644 (file)
 #      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 */