Python: Actually fix build

This commit is contained in:
Vicki Pfau 2024-09-29 20:27:00 -07:00
parent ed0a63d1b8
commit 36f321f848
2 changed files with 2 additions and 3 deletions

View File

@ -22,8 +22,7 @@
#define CXX_GUARD_END #define CXX_GUARD_END
#define PYCPARSE #define PYCPARSE
#define va_list void* typedef ... va_list;
typedef int... time_t; typedef int... time_t;
typedef int... off_t; typedef int... off_t;
typedef ...* png_structp; typedef ...* png_structp;

View File

@ -52,7 +52,7 @@ ffi.set_source("mgba._pylib", """
libraries=["mgba"], libraries=["mgba"],
library_dirs=[bindir], library_dirs=[bindir],
runtime_library_dirs=[libdir], runtime_library_dirs=[libdir],
sources=[os.path.join(pydir, path) for path in ["vfs-py.c", "core.c", "log.c", "sio.c"]]) sources=[os.path.join(pydir, path) for path in ["vfs-py.c", "core.c", "log.c"]])
preprocessed = subprocess.check_output(cpp + ["-fno-inline", "-P"] + cppflags + [os.path.join(pydir, "_builder.h")], universal_newlines=True) preprocessed = subprocess.check_output(cpp + ["-fno-inline", "-P"] + cppflags + [os.path.join(pydir, "_builder.h")], universal_newlines=True)