]> git.saurik.com Git - wxWidgets.git/commitdiff
MSW doesn't have EOVERFLOW, WinCE additionally doesn't have errno.h
authorJulian Smart <julian@anthemion.co.uk>
Mon, 28 Feb 2005 11:31:20 +0000 (11:31 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 28 Feb 2005 11:31:20 +0000 (11:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/string.cpp

index 672b5b143b2174d63a9cdbf479687665b33b08ee..501c4694ae912eae45ab7d8352530446f5e90b04 100644 (file)
 #include <ctype.h>
 #include <string.h>
 #include <stdlib.h>
 #include <ctype.h>
 #include <string.h>
 #include <stdlib.h>
+
+#ifndef __WXMSW__
 #include <errno.h>
 #include <errno.h>
+#endif
 
 #ifdef __SALFORDC__
   #include <clib.h>
 
 #ifdef __SALFORDC__
   #include <clib.h>
@@ -1838,7 +1841,12 @@ int wxString::PrintfV(const wxChar* pszFormat, va_list argptr)
         // buffer were large enough
         // also, it may return an errno may be something like EILSEQ,
         // in which case we need to break out
         // buffer were large enough
         // also, it may return an errno may be something like EILSEQ,
         // in which case we need to break out
-        if ( (len >= 0 && len <= size) || errno != EOVERFLOW )
+        if ( (len >= 0 && len <= size) 
+        // No EOVERFLOW on Windows
+#ifndef __WXMSW__
+            || errno != EOVERFLOW
+#endif
+            )
         {
             // ok, there was enough space
             break;
         {
             // ok, there was enough space
             break;