git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32454
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
+
+#ifndef __WXMSW__
#include <errno.h>
+#endif
#ifdef __SALFORDC__
#include <clib.h>
// 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;