Compilation fix for old OS/2 compiler.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2008-05-22 17:22:00 +00:00
parent 9a054f1079
commit 8de7c76277

View File

@@ -1918,7 +1918,7 @@ int wxString::PrintfV(const wxChar* pszFormat, va_list argptr)
// the user's format string
return -1;
#else // assume that system version only returns error if not enough space
#ifndef __WXWINCE__
#if !defined(__WXWINCE__) && (!defined(__OS2__) || defined(__INNOTEK_LIBC__))
if( (errno == EILSEQ) || (errno == EINVAL) )
// If errno was set to one of the two well-known hard errors
// then fail immediately to avoid an infinite loop.