Commit 87dfc765 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix: Rename define for unix moduselect to MICROPY_PY_USELECT_POSIX.

To not conflict with recently made available globally baremetal
moduselect.
parent 8f5bc3ff
......@@ -27,7 +27,7 @@
#include "py/mpconfig.h"
#if MICROPY_PY_USELECT
#if MICROPY_PY_USELECT_POSIX
#include <stdio.h>
#include <errno.h>
......@@ -238,4 +238,4 @@ const mp_obj_module_t mp_module_uselect = {
.globals = (mp_obj_dict_t*)&mp_module_select_globals,
};
#endif // MICROPY_PY_USELECT
#endif // MICROPY_PY_USELECT_POSIX
......@@ -121,8 +121,8 @@
#define MICROPY_PY_UBINASCII (1)
#define MICROPY_PY_UBINASCII_CRC32 (1)
#define MICROPY_PY_URANDOM (1)
#ifndef MICROPY_PY_USELECT
#define MICROPY_PY_USELECT (1)
#ifndef MICROPY_PY_USELECT_POSIX
#define MICROPY_PY_USELECT_POSIX (1)
#endif
#define MICROPY_PY_WEBSOCKET (1)
#define MICROPY_PY_MACHINE (1)
......@@ -194,7 +194,7 @@ extern const struct _mp_obj_module_t mp_module_jni;
#else
#define MICROPY_PY_SOCKET_DEF
#endif
#if MICROPY_PY_USELECT
#if MICROPY_PY_USELECT_POSIX
#define MICROPY_PY_USELECT_DEF { MP_ROM_QSTR(MP_QSTR_uselect), MP_ROM_PTR(&mp_module_uselect) },
#else
#define MICROPY_PY_USELECT_DEF
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment