X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbe47c7b5c67b377275dec0561c995a9a9467a3e..591d01bebacf365a654a9061cddeb7fae617a2f5:/include/wx/wxchar.h diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 5e65c13bce..1ee5b6194a 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -74,9 +74,9 @@ #endif #endif #if defined(__MWERKS__) && !defined(__MACH__) - #ifndef HAVE_WCSLEN - #define HAVE_WCSLEN - #endif + #ifndef HAVE_WCSLEN + #define HAVE_WCSLEN + #endif #endif #if wxUSE_WCHAR_T @@ -254,8 +254,13 @@ #define wxIsspace _istspace #define wxIsupper _istupper #define wxIsxdigit _istxdigit - #define wxTolower _totlower - #define wxToupper _totupper + + /* + There is a bug in VC6 C RTL: toxxx() functions dosn't do anything with + signed chars < 0, so "fix" it here. + */ + #define wxTolower(c) _totlower((wxUChar)(c)) + #define wxToupper(c) _totupper((wxUChar)(c)) /* locale.h functons */ #define wxSetlocale _tsetlocale @@ -436,7 +441,7 @@ #else #define wxPutchar(wch) wxPutc(wch, stdout) #endif - + #ifdef HAVE_PUTWS #define wxPuts putws #else @@ -651,10 +656,10 @@ #ifdef HAVE_WCSLEN #define wxWcslen wcslen #else - #if defined( __WXMAC_XCODE__ ) && !defined( __cplusplus ) - /* xcode native targets are giving multiply defined symbols on regex */ - static - #endif + #if defined( __WXMAC_XCODE__ ) && !defined( __cplusplus ) + /* xcode native targets are giving multiply defined symbols on regex */ + static + #endif inline size_t wxWcslen(const wchar_t *s) { size_t n = 0;