Skip to content

Commit 1ca075f

Browse files
committed
Remove manual definition of Py_LIMITED_API
1 parent 765a184 commit 1ca075f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

build_libtcod.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727

2828
import build_sdl
2929

30-
Py_LIMITED_API = 0x03100000
31-
3230
HEADER_PARSE_PATHS = ("tcod/", "libtcod/src/libtcod/")
3331
HEADER_PARSE_EXCLUDES = ("gl2_ext_.h", "renderer_gl_internal.h", "event.h")
3432

@@ -164,9 +162,6 @@ def walk_sources(directory: str) -> Iterator[str]:
164162
library_dirs: list[str] = [*build_sdl.library_dirs]
165163
define_macros: list[tuple[str, Any]] = []
166164

167-
if "PYODIDE" not in os.environ:
168-
define_macros.append(("Py_LIMITED_API", Py_LIMITED_API))
169-
170165
sources += walk_sources("tcod/")
171166
sources += walk_sources("libtcod/src/libtcod/")
172167
sources += ["libtcod/src/vendor/stb.c"]

0 commit comments

Comments
 (0)