#include <cstdio>
#include <cstdarg>
-#ifndef HAVE_VSNPRINTF
+#ifndef HAVE_DECL_VSNPRINTF
#include "support/snprintf.h"
#endif
#include "LString.h"
+#ifndef CXX_GLOBAL_CSTD
+using std::va_list;
+#endif
+
/* This output manipulator gives the option to use Old style format
specifications in ostreams. Note that this is done at the expense
of typesafety, so if possible this manipulator should be avoided.
va_list ap;
while (true) {
va_start(ap, fmtstr);
- int const r = ::vsnprintf(str, size, fmtstr, ap);
+ int const r = vsnprintf(str, size, fmtstr, ap);
va_end(ap);
if (r == -1) { // size is too small
delete [] str;