X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2c47c53728cbc879fa45ae1ac2998b67ea1fedd0..a98ce49a41630c2eabb266fe1597d4e279545023:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index 672b5b143b..c95d6729e8 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 nor Palm 6.0 nor OpenVMS +#if !defined(__WXMSW__) && !defined(__WXPALMOS__) && !defined( __VMS ) + || errno != EOVERFLOW +#endif + ) { // ok, there was enough space break;