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:
parent
ab317a0d66
commit
89b3207376
@ -25,13 +25,6 @@
|
|||||||
* THE SOFTWARE.
|
* 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/runtime.h"
|
||||||
#include "py/binary.h"
|
#include "py/binary.h"
|
||||||
#include "py/mperrno.h"
|
#include "py/mperrno.h"
|
||||||
@ -40,6 +33,12 @@
|
|||||||
|
|
||||||
#if MICROPY_PY_FFI
|
#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"
|
* modffi uses character codes to encode a value type, based on "struct"
|
||||||
* module type codes, with some extensions and overridings.
|
* module type codes, with some extensions and overridings.
|
||||||
|
Loading…
Reference in New Issue
Block a user