X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d036261c45c398857b983b599a945a3deef24f31..67461bd124df1c391a7e4d7cd3e68febb2a83ee2:/include/wx/wxchar.h diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index f8b7322717..1068c3dd69 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -18,6 +18,8 @@ #include "wx/platform.h" #include "wx/dlimpexp.h" +#include /* we use FILE below */ + #if defined(HAVE_STRTOK_R) && defined(__DARWIN__) && defined(_MSL_USING_MW_C_HEADERS) && _MSL_USING_MW_C_HEADERS char *strtok_r(char *, const char *, char **); #endif @@ -913,9 +915,11 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */ #else /* !HAVE_UNIX98_PRINTF */ /* The only compiler with positional parameters support under Windows - is VC++ 8.0 which provides a new xxprintf_p() functions family + is VC++ 8.0 which provides a new xxprintf_p() functions family. + The 2003 PSDK includes a slightly earlier version of VC8 than the + main release and does not have the printf_p functions. */ - #if defined(__VISUALC__) && __VISUALC__ >= 1400 && !defined(__WXWINCE__) + #if defined _MSC_FULL_VER && _MSC_FULL_VER >= 140050727 && !defined __WXWINCE__ #if wxUSE_UNICODE #define wxVsnprintf_ _vswprintf_p #else @@ -1015,9 +1019,6 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */ either because we don't have them at all or because they don't have the semantics we need */ - - #include /* for FILE */ - int wxScanf( const wxChar *format, ... ) ATTRIBUTE_PRINTF_1; int wxSscanf( const wxChar *str, const wxChar *format, ... ) ATTRIBUTE_PRINTF_2; int wxFscanf( FILE *stream, const wxChar *format, ... ) ATTRIBUTE_PRINTF_2;