#ifdef __cplusplus
extern "C" {
#endif
-
-#ifdef HAVE_SNPRINTF
+
+#ifndef CXX_GLOBAL_CSTD
+using std::size_t;
+using std::va_list;
+#endif
+
+#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
#ifdef __cplusplus
} /* end of extern "C" */
#endif
-
+
#endif