From ec6fa8732b3b30e14e505d9ee004bde260d48255 Mon Sep 17 00:00:00 2001 From: stijn Date: Sat, 28 Jun 2014 21:04:20 +0200 Subject: windows: Sync mpconfigport.h with the unix' version - rearrange/add definitions that were not there so it's easier to compare both - use MICROPY_PY_SYS_PLATFORM in main.c since it's available anyway - define EWOULDBLOCK, it is missing from ingw32 --- py/stream.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'py') diff --git a/py/stream.c b/py/stream.c index a5a96a868..cfdea15cc 100644 --- a/py/stream.c +++ b/py/stream.c @@ -37,6 +37,9 @@ #include "stream.h" #if MICROPY_STREAMS_NON_BLOCK #include +#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) +#define EWOULDBLOCK 140 +#endif #endif // This file defines generic Python stream read/write methods which -- cgit v1.2.3