From: Julian Smart Date: Mon, 28 Feb 2005 11:31:20 +0000 (+0000) Subject: MSW doesn't have EOVERFLOW, WinCE additionally doesn't have errno.h X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9a08c20ec23c76032ae062a2935c6c4d7ae489f2 MSW doesn't have EOVERFLOW, WinCE additionally doesn't have errno.h git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/string.cpp b/src/common/string.cpp index 672b5b143b..501c4694ae 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -42,7 +42,10 @@ #include #include #include + +#ifndef __WXMSW__ #include +#endif #ifdef __SALFORDC__ #include @@ -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 - 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;