X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d60815d749bfd728b6b62cbd699578a9c60bf3a..44893b87abdc8df271363b08a5d1b57cf7e4e04c:/include/wx/wxchar.h diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 242778762b..ee7f0b225f 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -120,7 +120,7 @@ // time.h functions -- none defined in tchar.h #define wxAsctime asctime #define wxCtime ctime -#elif defined(__MWERKS__) +#elif defined(__MWERKS__) || defined(__VISAGECPP__) // for wcslen #if wxUSE_WCHAR_T #include @@ -327,7 +327,7 @@ typedef _TUCHAR wxUChar; // VS: wxWindows used to define wxChar as __WCHAR_TYPE__ here. However, this doesn't // work with new GCC 3.x compilers because wchar_t is C++'s builtin type in the new -// standard. OTOH, old compilers (GCC 2.x) won't accept new definition +// standard. OTOH, old compilers (GCC 2.x) won't accept new definition // of wx{S,U}Char, therefore we have to define wxChar conditionally depending on // detected compiler & compiler version. // The most complicated case is the infamous so-called "gcc-2.96" which does not @@ -609,6 +609,9 @@ WXDLLEXPORT bool wxOKlibc(); // for internal use // We need conversion from %s to %ls in Unicode mode under Unix #ifdef wxNEED_PRINTF_CONVERSION + +#include // need FILE + int wxScanf( const wxChar *format, ... ) ATTRIBUTE_PRINTF_2; int wxSscanf( const wxChar *str, const wxChar *format, ... ) ATTRIBUTE_PRINTF_3; int wxFscanf( FILE *stream, const wxChar *format, ... ) ATTRIBUTE_PRINTF_3; @@ -621,7 +624,8 @@ int wxVfprint( const wxChar *format, va_list ap ); int wxVprintf( const wxChar *format, va_list ap ); int wxVsnprintf( wxChar *str, size_t size, const wxChar *format, va_list ap ); int wxVsprintf( wxChar *str, const wxChar *format, va_list ap ); -#endif + +#endif // wxNEED_PRINTF_CONVERSION #if !defined(wxSnprintf) && !defined(wxHAS_SNPRINTF) // wxSnprintf() is like snprintf() if it's available and sprintf() (always