]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilo fix
authorRobin Dunn <robin@alldunn.com>
Sat, 9 Sep 2006 19:07:05 +0000 (19:07 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 9 Sep 2006 19:07:05 +0000 (19:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wxchar.cpp

index 9be21d4697aa80f18837791ae84587a4fb13b83f..1aeaec1b172f768a8e67135394eae75bd88d7daf 100644 (file)
@@ -197,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