diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-30 20:05:56 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-30 20:05:56 +0300 |
commit | 61e77a4e88c4b6971fd997191de01e5ab08e46c5 (patch) | |
tree | fff2891aa94810f76849050fe02504c8599a0ab4 /unix | |
parent | 58d9d85a564bbae5fa7eaa1f0baa62be56024366 (diff) | |
download | micropython-61e77a4e88c4b6971fd997191de01e5ab08e46c5.tar.gz micropython-61e77a4e88c4b6971fd997191de01e5ab08e46c5.zip |
py/mpconfig.h: Add MICROPY_STREAMS_POSIX_API setting.
To filter out even prototypes of mp_stream_posix_*() functions, which
require POSIX types like ssize_t & off_t, which may be not available in
some ports.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/mpconfigport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index 2f4ec11211..58061b28ac 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -63,6 +63,7 @@ #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE) #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ) #define MICROPY_STREAMS_NON_BLOCK (1) +#define MICROPY_STREAMS_POSIX_API (1) #define MICROPY_OPT_COMPUTED_GOTO (1) #ifndef MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE #define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (1) |