summaryrefslogtreecommitdiffstatshomepage
path: root/unix/mpconfigport.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-07 23:40:04 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-07 23:40:04 +0300
commitb9b9354e6c0cefff071be0bc4e195eb80f1f1d96 (patch)
tree2a0452509f21cee7c4a0cf893430cd35eb29cd19 /unix/mpconfigport.h
parent7e4a2b0edca2953ae3dd19f9ad554739a9174c81 (diff)
downloadmicropython-b9b9354e6c0cefff071be0bc4e195eb80f1f1d96.tar.gz
micropython-b9b9354e6c0cefff071be0bc4e195eb80f1f1d96.zip
modsys: Add optional support for sys.platform.
Ports which wants to have it, should define MICROPY_PY_SYS_PLATFORM to a string value they need.
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index ace7a419b4..bf2cf73efd 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -43,6 +43,7 @@
#define MICROPY_OPT_COMPUTED_GOTO (1)
#define MICROPY_PY_BUILTINS_FROZENSET (1)
#define MICROPY_PY_SYS_EXIT (1)
+#define MICROPY_PY_SYS_PLATFORM "linux"
#define MICROPY_PY_SYS_STDFILES (1)
#define MICROPY_PY_CMATH (1)
#define MICROPY_PY_IO_FILEIO (1)