X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec0d6da38d2cf84d69d5bb2d49effb13ed169c64..810f173e8d7f580c612f202aab2a01003c3fb834:/include/wx/wxchar.h diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 88ea300646..28b9c1dc16 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -598,7 +598,7 @@ WXDLLEXPORT bool wxOKlibc(); // for internal use For some systems vsnprintf() exists in the system libraries but not in the headers, so we need to declare it ourselves to be able to use it. */ -#ifndef HAVE_VSNPRINTF_DECL +#if defined(HAVE_VSNPRINTF) && !defined(HAVE_VSNPRINTF_DECL) extern "C" int vsnprintf(char *str, size_t size, const char *format, va_list ap); #endif // !HAVE_VSNPRINTF_DECL