From 0ef015b2533f7faeede18382c1d1f4eac919244b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 7 May 2014 02:23:46 +0300 Subject: stream: Make non-blcoking stream support configurable. Enable only on unix. To avoid unpleasant surprises with error codes. --- py/mpconfig.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index 48494a21f..9acfc142f 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -249,6 +249,11 @@ typedef double mp_float_t; #define MICROPY_PATH_MAX (512) #endif +// Whether POSIX-semantics non-blocking streams are supported +#ifndef MICROPY_STREAMS_NON_BLOCK +#define MICROPY_STREAMS_NON_BLOCK (0) +#endif + // Whether to use computed gotos in the VM, or a switch // Computed gotos are roughly 10% faster, and increase VM code size by a little #ifndef MICROPY_USE_COMPUTED_GOTO -- cgit v1.2.3