src/platform/python/_builder.h (view raw)
1#define COMMON_H
2#define PNG_H
3#define OPAQUE_THREADING
4#define _SYS_TIME_H
5#define _SYS_TIME_H_
6#define _TIME_H
7#define _TIME_H_
8
9#define ATTRIBUTE_FORMAT(X, Y, Z)
10#define DECL_BITFIELD(newtype, oldtype) typedef oldtype newtype
11#define DECL_BIT(type, name, bit)
12#define DECL_BITS(type, name, bit, nbits)
13
14#define CXX_GUARD_START
15#define CXX_GUARD_END
16
17typedef int... time_t;
18typedef int... off_t;
19typedef ... va_list;
20typedef ...* png_structp;
21typedef ...* png_infop;
22typedef ...* png_unknown_chunkp;
23
24void free(void*);
25
26#include <limits.h>
27#undef const
28
29#include "flags.h"
30
31#include <mgba/core/core.h>
32#include <mgba/core/mem-search.h>
33#include <mgba/core/tile-cache.h>
34#include <mgba/core/thread.h>
35#include <mgba/core/version.h>
36
37#define PYEXPORT extern "Python+C"
38#include "platform/python/log.h"
39#include "platform/python/sio.h"
40#include "platform/python/vfs-py.h"
41#undef PYEXPORT
42
43#ifdef USE_PNG
44#include <mgba-util/png-io.h>
45#endif
46#ifdef M_CORE_GBA
47#include <mgba/internal/arm/arm.h>
48#include <mgba/internal/gba/gba.h>
49#include <mgba/internal/gba/input.h>
50#include <mgba/internal/gba/renderers/tile-cache.h>
51#endif
52#ifdef M_CORE_GB
53#include <mgba/internal/lr35902/lr35902.h>
54#include <mgba/internal/gb/gb.h>
55#include <mgba/internal/gba/input.h>
56#include <mgba/internal/gb/renderers/tile-cache.h>
57#endif
58#ifdef USE_DEBUGGERS
59#include <mgba/debugger/debugger.h>
60#endif