Always use standard mbstowcs() and wcstombs() functions.
Don't provide our own (not fully functional) definitions of them and always use the system versions as we don't support OS X 10.2 which was the last platform where these functions didn't exist/work. See #15580. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -565,24 +565,6 @@ WXDLLIMPEXP_BASE wchar_t * wxCRT_GetenvW(const wchar_t *name);
|
||||
/* wcstoi doesn't exist */
|
||||
#endif
|
||||
|
||||
#ifdef __DARWIN__
|
||||
#if !defined(__WXOSX_IPHONE__) && MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2
|
||||
#define wxNEED_WX_MBSTOWCS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef wxNEED_WX_MBSTOWCS
|
||||
/* 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!! */
|
||||
WXDLLIMPEXP_BASE size_t wxMbstowcs(wchar_t *, const char *, size_t);
|
||||
WXDLLIMPEXP_BASE size_t wxWcstombs(char *, const wchar_t *, size_t);
|
||||
#else
|
||||
#define wxMbstowcs mbstowcs
|
||||
#define wxWcstombs wcstombs
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------
|
||||
time.h
|
||||
------------------------------------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user