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