X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07243717e26bda497d5a8b325c2e6acf4ee033cf..e1aae5288576cd0066d2cbbf92935a969110bcea:/include/wx/wxchar.h?ds=sidebyside diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 03a406d0ff..28b9c1dc16 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -594,6 +594,15 @@ WXDLLEXPORT bool wxOKlibc(); // for internal use // printf() family saga // ---------------------------------------------------------------------------- +/* + 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. + */ +#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 + /* First of all, we always want to define safe snprintf() function to be used instead of sprintf(). Some compilers already have it (or rather vsnprintf()