From 317246dfcbc87cc6c70eac2f7f33bf2d61a02ae5 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 27 Dec 2002 14:59:35 +0000 Subject: [PATCH] Applied patch [ 658786 ] Removes unresolved symbols from strconv (wxUniv/MSW) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/univ/setup0.h | 2 +- src/common/strconv.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/wx/univ/setup0.h b/include/wx/univ/setup0.h index e1135cbb11..1b0e39bbef 100644 --- a/include/wx/univ/setup0.h +++ b/include/wx/univ/setup0.h @@ -199,7 +199,7 @@ // // Recommended setting: 1 for win32 else 0 #if defined(__WIN32__) - #define wxUSE_WCHAR_T 0 //? unresolved external symbol wxCharsetToCodepage + #define wxUSE_WCHAR_T 1 #else #define wxUSE_WCHAR_T 0 #endif diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 0610b43452..a868a4a2ad 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -782,7 +782,7 @@ size_t IC_CharSet::WC2MB(char *buf, const wchar_t *psz, size_t n) // Win32 conversion classes // ============================================================================ -#if defined(__WIN32__) && !defined(__WXMICROWIN__) +#if defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXUNIVERSAL__) #ifdef __WXWINE__ #define WINE_CAST (WCHAR *) @@ -842,7 +842,7 @@ public: public: long m_CodePage; }; -#endif // __WIN32__ +#endif // defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXUNIVERSAL__) // ============================================================================ // wxEncodingConverter based conversion classes @@ -942,14 +942,14 @@ static wxCharacterSet *wxGetCharacterSet(const wxChar *name) cset = NULL; } -#if defined(__WIN32__) && !defined(__WXMICROWIN__) +#if defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXUNIVERSAL__) cset = new CP_CharSet(name); if ( cset->usable() ) return cset; delete cset; cset = NULL; -#endif // __WIN32__ +#endif // defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXUNIVERSAL__) #if wxUSE_FONTMAP cset = new EC_CharSet(name); -- 2.47.2