]> git.lyx.org Git - lyx.git/blobdiff - src/support/snprintf.h
small changes read changelog
[lyx.git] / src / support / snprintf.h
index 6ab2dcc8ea466df82050d9a3dfc1d2388a2d254d..03cf914b3d05d9000b4dcf36a0ba9baa55dfe2c6 100644 (file)
@@ -8,10 +8,13 @@
 extern "C" {
 #endif
   
-#ifdef HAVE_SNPRINTF
+#if defined(HAVE_DECL_SNPRINTF) || defined(HAVE_DECL_VSNPRINTF)
 #include <stdio.h>
-#else
+#endif
+#ifndef HAVE_DECL_SNPRINTF
 int snprintf(char *, size_t, const char *, /*args*/ ...);
+#endif
+#ifndef HAVE_DECL_VSNPRINTF
 int vsnprintf(char *, size_t, const char *, va_list);
 #endif