fix darwin defines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -362,7 +362,7 @@
|
|||||||
#define wxCtime _tctime
|
#define wxCtime _tctime
|
||||||
#else /* !TCHAR-aware compilers */
|
#else /* !TCHAR-aware compilers */
|
||||||
|
|
||||||
#if __DARWIN__ && ( MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 ) && !defined(__MWERKS__)
|
#if !defined(__MWERKS__) && defined(__DARWIN__) && ( MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 )
|
||||||
/* even though they are defined and "implemented", they are bad and just
|
/* even though they are defined and "implemented", they are bad and just
|
||||||
stubs so we need our own - we need these even in ANSI builds!! */
|
stubs so we need our own - we need these even in ANSI builds!! */
|
||||||
#define mbstowcs wxInternalMbstowcs
|
#define mbstowcs wxInternalMbstowcs
|
||||||
@@ -373,7 +373,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* No UNICODE in the c library except wchar_t typedef on mac OSX 10.2 and less - roll our own */
|
/* No UNICODE in the c library except wchar_t typedef on mac OSX 10.2 and less - roll our own */
|
||||||
#if wxUSE_UNICODE && __DARWIN__ && ( MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 ) && !defined(__MWERKS__)
|
#if !defined(__MWERKS__) && wxUSE_UNICODE && defined(__DARWIN__) && ( MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 )
|
||||||
|
|
||||||
/* we need everything! */
|
/* we need everything! */
|
||||||
#define wxNEED_WX_STRING_H
|
#define wxNEED_WX_STRING_H
|
||||||
|
@@ -1043,7 +1043,7 @@ WXDLLEXPORT int wxTolower(wxChar ch) { return (wxChar)CharLower((LPTSTR)(ch)); }
|
|||||||
WXDLLEXPORT int wxToupper(wxChar ch) { return (wxChar)CharUpper((LPTSTR)(ch)); }
|
WXDLLEXPORT int wxToupper(wxChar ch) { return (wxChar)CharUpper((LPTSTR)(ch)); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __DARWIN__ && ( MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 )
|
#if defined(__DARWIN__) && ( MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 )
|
||||||
|
|
||||||
WXDLLEXPORT size_t wxInternalMbstowcs (wchar_t * out, const char * in, size_t outlen)
|
WXDLLEXPORT size_t wxInternalMbstowcs (wchar_t * out, const char * in, size_t outlen)
|
||||||
{
|
{
|
||||||
@@ -1117,9 +1117,10 @@ WXDLLEXPORT int wxIsupper(wxChar ch) { return CFCharacterSetIsCharacterMember(cf
|
|||||||
WXDLLEXPORT int wxIsxdigit(wxChar ch) { return wxIsdigit(ch) || (ch>='a' && ch<='f') || (ch>='A' && ch<='F'); }
|
WXDLLEXPORT int wxIsxdigit(wxChar ch) { return wxIsdigit(ch) || (ch>='a' && ch<='f') || (ch>='A' && ch<='F'); }
|
||||||
WXDLLEXPORT int wxTolower(wxChar ch) { return (wxChar)tolower((char)(ch)); }
|
WXDLLEXPORT int wxTolower(wxChar ch) { return (wxChar)tolower((char)(ch)); }
|
||||||
WXDLLEXPORT int wxToupper(wxChar ch) { return (wxChar)toupper((char)(ch)); }
|
WXDLLEXPORT int wxToupper(wxChar ch) { return (wxChar)toupper((char)(ch)); }
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif // wxNEED_WX_CTYPE_H
|
||||||
|
|
||||||
|
#endif // defined(__DARWIN__) and OSX <= 10.2
|
||||||
|
|
||||||
#ifndef wxStrdupA
|
#ifndef wxStrdupA
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user