diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-07 02:23:46 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-07 02:25:45 +0300 |
commit | 0ef015b2533f7faeede18382c1d1f4eac919244b (patch) | |
tree | aac00b410837ccdd3d1b59284cdac5b423767c8e /py/mpconfig.h | |
parent | 6c62e7257f8dec7f20a1ace42f0ae5fa4320ad06 (diff) | |
download | micropython-0ef015b2533f7faeede18382c1d1f4eac919244b.tar.gz micropython-0ef015b2533f7faeede18382c1d1f4eac919244b.zip |
stream: Make non-blcoking stream support configurable.
Enable only on unix. To avoid unpleasant surprises with error codes.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 48494a21ff..9acfc142f5 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 |