unix/modffi: Move header includes inside MICROPY_PY_FFI guard.

So ffi.h is not needed if this module is disabled.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-10-14 14:36:17 +11:00
parent ab317a0d66
commit 89b3207376
1 changed files with 6 additions and 7 deletions

View File

@ -25,13 +25,6 @@
* THE SOFTWARE.
*/
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <dlfcn.h>
#include <ffi.h>
#include <stdint.h>
#include "py/runtime.h"
#include "py/binary.h"
#include "py/mperrno.h"
@ -40,6 +33,12 @@
#if MICROPY_PY_FFI
#include <assert.h>
#include <string.h>
#include <errno.h>
#include <dlfcn.h>
#include <ffi.h>
/*
* modffi uses character codes to encode a value type, based on "struct"
* module type codes, with some extensions and overridings.