summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-13 13:24:39 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-13 13:24:39 +0100
commitda6c2fafb59416715eb6347445369a3b08b6ea2a (patch)
treee9178376d6a6a04c1faddf7f702cdecdaf423a28 /py
parentd395a0e4b1860f6d3b5c8cb4b855e21ea71a2ccb (diff)
parent8e9482a3c336baccf26e26f38200ebf0e0ef3cb8 (diff)
downloadmicropython-da6c2fafb59416715eb6347445369a3b08b6ea2a.tar.gz
micropython-da6c2fafb59416715eb6347445369a3b08b6ea2a.zip
Merge pull request #470 from errordeveloper/misc_fix/lexerunix
py: don't look for any additional headers when lexerunix is disabled
Diffstat (limited to 'py')
-rw-r--r--py/lexerunix.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/py/lexerunix.c b/py/lexerunix.c
index 52fbe740ae..f66fa1e2ab 100644
--- a/py/lexerunix.c
+++ b/py/lexerunix.c
@@ -1,14 +1,16 @@
+#include "misc.h"
+#include "mpconfig.h"
+
+#if MICROPY_ENABLE_LEXER_UNIX
+
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
-#include "misc.h"
-#include "mpconfig.h"
#include "qstr.h"
#include "lexer.h"
#include "lexerunix.h"
-#if MICROPY_ENABLE_LEXER_UNIX
#include <sys/stat.h>
#include <sys/types.h>