From 1ef26b35c1682637de143ccb0449acb42428ed5c Mon Sep 17 00:00:00 2001 From: Damien George <damien.p.george@gmail.com> Date: Sat, 14 Mar 2015 23:11:25 +0000 Subject: [PATCH] py, extmod: Remove include of unnecessary system headers. --- extmod/moduheapq.c | 2 -- extmod/modujson.c | 2 -- extmod/moduzlib.c | 5 ----- py/compile.c | 1 - py/objfloat.c | 3 ++- 5 files changed, 2 insertions(+), 11 deletions(-) diff --git a/extmod/moduheapq.c b/extmod/moduheapq.c index 8112b5525..5c5ed06a1 100644 --- a/extmod/moduheapq.c +++ b/extmod/moduheapq.c @@ -24,8 +24,6 @@ * THE SOFTWARE. */ -#include <unistd.h> - #include "py/nlr.h" #include "py/objlist.h" #include "py/runtime0.h" diff --git a/extmod/modujson.c b/extmod/modujson.c index b5384bbc4..747a86ac6 100644 --- a/extmod/modujson.c +++ b/extmod/modujson.c @@ -25,8 +25,6 @@ */ #include <stdio.h> -#include <unistd.h> -#include <string.h> #include "py/nlr.h" #include "py/objlist.h" diff --git a/extmod/moduzlib.c b/extmod/moduzlib.c index 8b72d14ac..31544059e 100644 --- a/extmod/moduzlib.c +++ b/extmod/moduzlib.c @@ -25,11 +25,6 @@ */ #include <stdio.h> -#include <unistd.h> -#include <string.h> -#include <time.h> -#include <sys/time.h> -#include <math.h> #include "py/nlr.h" #include "py/runtime.h" diff --git a/py/compile.c b/py/compile.c index d95d8f73b..6c54ddeb8 100644 --- a/py/compile.c +++ b/py/compile.c @@ -29,7 +29,6 @@ #include <stdio.h> #include <string.h> #include <assert.h> -#include <math.h> #include "py/scope.h" #include "py/emit.h" diff --git a/py/objfloat.c b/py/objfloat.c index 2e8b7f74e..b94caf3c0 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -28,7 +28,6 @@ #include <stdio.h> #include <string.h> #include <assert.h> -#include <math.h> #include "py/nlr.h" #include "py/parsenum.h" @@ -37,6 +36,8 @@ #if MICROPY_PY_BUILTINS_FLOAT +#include <math.h> + #if MICROPY_FLOAT_IMPL == MICROPY_FLOAT_IMPL_FLOAT #include "py/formatfloat.h" #endif -- GitLab