From: Václav Slavík Date: Sun, 19 Aug 2001 22:22:59 +0000 (+0000) Subject: nicer version compilation fix for wxUSE_WCHAR_T=0 (why should we duplicate definition... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7af284fda7500594b2ab86c8ba60138164ab4d04 nicer version compilation fix for wxUSE_WCHAR_T=0 (why should we duplicate definitions in all #ifdef branches???) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 8b97f59337..82656dd1d2 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -37,6 +37,25 @@ #include #include + +#include "wx/debug.h" +#include "wx/strconv.h" +#include "wx/intl.h" +#include "wx/log.h" + +// ---------------------------------------------------------------------------- +// globals +// ---------------------------------------------------------------------------- + +WXDLLEXPORT_DATA(wxMBConv *) wxConvCurrent = &wxConvLibc; + + +// ============================================================================ +// implementation +// ============================================================================ + +#if wxUSE_WCHAR_T + #ifdef __SALFORDC__ #include #endif @@ -49,12 +68,6 @@ #include #endif -#include "wx/debug.h" -#include "wx/strconv.h" -#include "wx/intl.h" -#include "wx/log.h" - -#if wxUSE_WCHAR_T #define BSWAP_UCS4(str, len) { unsigned _c; for (_c=0; _c