summaryrefslogtreecommitdiff
path: root/py/qstrdefs.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 /py/qstrdefs.h
parent7e4a2b0edca2953ae3dd19f9ad554739a9174c81 (diff)
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 'py/qstrdefs.h')
-rw-r--r--py/qstrdefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index 69182f280..ae358b99a 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -343,6 +343,9 @@ Q(byteorder)
Q(big)
Q(exit)
Q(little)
+#ifdef MICROPY_PY_SYS_PLATFORM
+Q(platform)
+#endif
Q(stdin)
Q(stdout)
Q(stderr)