diff options
Diffstat (limited to 'py')
-rw-r--r-- | py/compile.c | 1 | ||||
-rw-r--r-- | py/objfloat.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/py/compile.c b/py/compile.c index d95d8f73bc..6c54ddeb83 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 2e8b7f74e9..b94caf3c06 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 |