X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/297eb8e6d23db4e24843640ead6609577ccee2c2..446e69bee56ce978cfb87d80a2f8c0e44ec61658:/src/common/wxchar.cpp diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index eaab6699ac..1aeaec1b17 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -20,6 +20,8 @@ #pragma hdrstop #endif +#include "wx/wxchar.h" + #define _ISOC9X_SOURCE 1 // to get vsscanf() #define _BSD_SOURCE 1 // to still get strdup() @@ -35,11 +37,11 @@ #endif #ifndef WX_PRECOMP - #include "wx/wxchar.h" #include "wx/string.h" #include "wx/hash.h" + #include "wx/utils.h" // for wxMin and wxMax + #include "wx/log.h" #endif - #include "wx/utils.h" // for wxMin and wxMax #if defined(__WIN32__) && defined(wxNEED_WX_CTYPE_H) #include @@ -195,7 +197,11 @@ bool WXDLLEXPORT wxOKlibc() // result in an endless recursion and thus in a stack overflow #if wxUSE_UNICODE - #if defined(__WXWINCE__) || ( defined(__VISUALC__) && __VISUALC__ <= 1200 ) + #if defined(__WINDOWS__) + // all compilers under Windows should have swprintf() + #define HAVE_SWPRINTF + #endif + #if defined(__WXWINCE__) || ( defined(__VISUALC__) && __VISUALC__ <= 1200 ) || defined(__GNUWIN32__) #define HAVE_BROKEN_SWPRINTF_DECL #endif