X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07243717e26bda497d5a8b325c2e6acf4ee033cf..52c71b808f1c7fd161bb0bc5082683320f15dbb2:/include/wx/wxchar.h diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 03a406d0ff..88ea300646 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. + */ +#ifndef 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()