Skip to content

Commit cbb3a56

Browse files
committed
Add TTF headers patch
1 parent ae3228e commit cbb3a56

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/SDL2TTF.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,23 @@ public static function create(
7373
$pre = clone $pre;
7474

7575
$pre->add('SDL.h', <<<'CPP'
76+
typedef enum { SDL_FALSE = 0, SDL_TRUE = 1 } SDL_bool;
7677
78+
typedef uint16_t Uint16;
79+
typedef uint32_t Uint32;
80+
81+
typedef struct SDL_version SDL_version;
82+
typedef struct SDL_RWops SDL_RWops;
83+
typedef struct SDL_Surface SDL_Surface;
84+
typedef struct SDL_Color SDL_Color;
7785
CPP);
7886

87+
$pre->add('begin_code.h', '');
88+
$pre->add('close_code.h', '');
89+
90+
$pre->define('DECLSPEC', '');
91+
$pre->define('SDLCALL', '');
92+
7993
if (!$version instanceof VersionInterface) {
8094
$version = Version::create($version);
8195
}

0 commit comments

Comments
 (0)