diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-17 23:35:00 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-06-17 23:35:00 +0300 |
commit | 6f8880d0ab92e002e7596578ceb0959f9327bc01 (patch) | |
tree | eb7d916863ead9a3119c711a7fcf7a745f2f5791 /unix/modtime.c | |
parent | 70536212d5ea1dd265ad72ee2eaff333b17815f6 (diff) | |
download | micropython-6f8880d0ab92e002e7596578ceb0959f9327bc01.tar.gz micropython-6f8880d0ab92e002e7596578ceb0959f9327bc01.zip |
unix: Move "utime" module config to C level instead of make level.
Diffstat (limited to 'unix/modtime.c')
-rw-r--r-- | unix/modtime.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unix/modtime.c b/unix/modtime.c index d3b780790c..196b1506a5 100644 --- a/unix/modtime.c +++ b/unix/modtime.c @@ -24,6 +24,9 @@ * THE SOFTWARE. */ +#include "py/mpconfig.h" +#if MICROPY_PY_UTIME + #include <unistd.h> #include <errno.h> #include <string.h> @@ -190,3 +193,5 @@ const mp_obj_module_t mp_module_time = { .name = MP_QSTR_utime, .globals = (mp_obj_dict_t*)&mp_module_time_globals, }; + +#endif // MICROPY_PY_UTIME |