Skip to content

Commit 1ef26b3

Browse files
committed
py, extmod: Remove include of unnecessary system headers.
1 parent 836e469 commit 1ef26b3

5 files changed

Lines changed: 2 additions & 11 deletions

File tree

extmod/moduheapq.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
#include <unistd.h>
28-
2927
#include "py/nlr.h"
3028
#include "py/objlist.h"
3129
#include "py/runtime0.h"

extmod/modujson.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
*/
2626

2727
#include <stdio.h>
28-
#include <unistd.h>
29-
#include <string.h>
3028

3129
#include "py/nlr.h"
3230
#include "py/objlist.h"

extmod/moduzlib.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@
2525
*/
2626

2727
#include <stdio.h>
28-
#include <unistd.h>
29-
#include <string.h>
30-
#include <time.h>
31-
#include <sys/time.h>
32-
#include <math.h>
3328

3429
#include "py/nlr.h"
3530
#include "py/runtime.h"

py/compile.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include <stdio.h>
3030
#include <string.h>
3131
#include <assert.h>
32-
#include <math.h>
3332

3433
#include "py/scope.h"
3534
#include "py/emit.h"

py/objfloat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <stdio.h>
2929
#include <string.h>
3030
#include <assert.h>
31-
#include <math.h>
3231

3332
#include "py/nlr.h"
3433
#include "py/parsenum.h"
@@ -37,6 +36,8 @@
3736

3837
#if MICROPY_PY_BUILTINS_FLOAT
3938

39+
#include <math.h>
40+
4041
#if MICROPY_FLOAT_IMPL == MICROPY_FLOAT_IMPL_FLOAT
4142
#include "py/formatfloat.h"
4243
#endif

0 commit comments

Comments
 (0)