Skip to content

Commit 1426465

Browse files
committed
Fix SDL parser to work with SDL 2.0.14.
A new constant definition was a float which broke the CFFI parser. This constant has been blacklisted. Update the bundled version of SDL to the current latest version.
1 parent 27a3278 commit 1426465

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.rst

+4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ v2.0.0
88

99
Unreleased
1010
------------------
11+
Changed
12+
- Now bundles SDL 2.0.14 for Windows/MacOS.
13+
1114
Deprecated
1215
- `tcod.console_load_xp` has been deprecated, `tcod.console_from_xp` can load
1316
these files without modifying an existing console.
1417
- Support for Python 3.5 will be dropped soon.
1518

1619
Fixed
1720
- `tcod.console_from_xp` now has better error handling (instead of crashing.)
21+
- Can now compile with SDL 2.0.14 headers.
1822

1923
11.18.2 - 2020-12-03
2024
--------------------

build_libtcod.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# The SDL2 version to parse and export symbols from.
2525
SDL2_PARSE_VERSION = os.environ.get("SDL_VERSION", "2.0.5")
2626
# The SDL2 version to include in binary distributions.
27-
SDL2_BUNDLE_VERSION = os.environ.get("SDL_VERSION", "2.0.10")
27+
SDL2_BUNDLE_VERSION = os.environ.get("SDL_VERSION", "2.0.14")
2828

2929
HEADER_PARSE_PATHS = ("tcod/", "libtcod/src/libtcod/")
3030
HEADER_PARSE_EXCLUDES = ("gl2_ext_.h", "renderer_gl_internal.h", "event.h")

parse_sdl2.py

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def get_header(name: str) -> str:
6161
"SDL_BlitScaled",
6262
"SDL_BlitSurface",
6363
"SDL_Colour",
64+
"SDL_IPHONE_MAX_GFORCE",
6465
]
6566

6667

0 commit comments

Comments
 (0)