Skip to content

Commit

Permalink
extmod/modbtree: Move system includes within MICROPY_PY_BTREE guard.
Browse files Browse the repository at this point in the history
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 <damien@micropython.org>
  • Loading branch information
dpgeorge committed Feb 21, 2023
1 parent e0d1127 commit 9508269
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions extmod/modbtree.c
Expand Up @@ -24,16 +24,14 @@
* THE SOFTWARE.
*/

#include <stdio.h>
#include <string.h>
#include <errno.h> // for declaration of global errno variable
#include <fcntl.h>

#include "py/runtime.h"
#include "py/stream.h"

#if MICROPY_PY_BTREE

#include <stdio.h>
#include <errno.h> // for declaration of global errno variable
#include <fcntl.h>
#include <db.h>
#include <../../btree/btree.h>

Expand Down

0 comments on commit 9508269

Please sign in to comment.