diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-07 23:40:04 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-07 23:40:04 +0300 |
commit | b9b9354e6c0cefff071be0bc4e195eb80f1f1d96 (patch) | |
tree | 2a0452509f21cee7c4a0cf893430cd35eb29cd19 /unix/mpconfigport.h | |
parent | 7e4a2b0edca2953ae3dd19f9ad554739a9174c81 (diff) | |
download | micropython-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.h | 1 |
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) |