X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6718dd17be552c69c7e4dbca183f6078998c042..0441868f0826077c1412a9828e5f3e67f32c425d:/include/wx/wxchar.h?ds=sidebyside diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 4f4dc9b485..76e990c689 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -109,6 +109,10 @@ /* include stdlib.h for wchar_t */ #include #endif /* HAVE_WCHAR_H */ + + #ifdef HAVE_WIDEC_H + #include + #endif #endif /* wxUSE_WCHAR_T */ /* ---------------------------------------------------------------------------- */ @@ -323,7 +327,7 @@ #define wxStrtol _tcstol #define wxStrtoul _tcstoul #ifdef __VISUALC__ - #if __VISUALC__ >= 1300 + #if __VISUALC__ >= 1300 && !defined(__WXWINCE__) #define wxStrtoll _tcstoi64 #define wxStrtoull _tcstoui64 #endif /* VC++ 7+ */ @@ -865,7 +869,7 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */ #else extern #endif - int snprintf(char *str, size_t size, const char *format, ...); + WXDLLIMPEXP_BASE int snprintf(char *str, size_t size, const char *format, ...); #endif /* !HAVE_SNPRINTF_DECL */ /* Wrapper for vsnprintf if it's 3rd parameter is non-const. Note: the @@ -881,10 +885,8 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */ /* MinGW MSVCRT has non-standard vswprintf() (for MSVC compatibility presumably) and normally _vsnwprintf() is used instead - - vswprintf() under (early versions of) OS X is buggy */ -#if defined(HAVE_VSWPRINTF) && (defined(__MINGW32__) || defined(__DARWIN__)) +#if defined(HAVE_VSWPRINTF) && defined(__MINGW32__) #undef HAVE_VSWPRINTF #endif @@ -911,9 +913,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 + #if defined _MSC_FULL_VER && _MSC_FULL_VER >= 140050727 && !defined __WXWINCE__ #if wxUSE_UNICODE #define wxVsnprintf_ _vswprintf_p #else