Skip to content

Commit 9508269

Browse files
committed
extmod/modbtree: Move system includes within MICROPY_PY_BTREE guard.
Since commit d6d8722, modbtree.c is included unconditionally in the build (if SRC_EXTMOD_C is used). So guard the includes of system headers files in case a target doesn't have them. Signed-off-by: Damien George <[email protected]>
1 parent e0d1127 commit 9508269

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

extmod/modbtree.c

+3-5
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,14 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
#include <stdio.h>
28-
#include <string.h>
29-
#include <errno.h> // for declaration of global errno variable
30-
#include <fcntl.h>
31-
3227
#include "py/runtime.h"
3328
#include "py/stream.h"
3429

3530
#if MICROPY_PY_BTREE
3631

32+
#include <stdio.h>
33+
#include <errno.h> // for declaration of global errno variable
34+
#include <fcntl.h>
3735
#include <db.h>
3836
#include <../../btree/btree.h>
3937

0 commit comments

Comments
 (0)