We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b81b3a6 commit fa1eb6eCopy full SHA for fa1eb6e
build_libtcod.py
@@ -162,7 +162,10 @@ def walk_sources(directory: str) -> Iterator[str]:
162
163
libraries: list[str] = [*build_sdl.libraries]
164
library_dirs: list[str] = [*build_sdl.library_dirs]
165
-define_macros: list[tuple[str, Any]] = [("Py_LIMITED_API", Py_LIMITED_API)]
+define_macros: list[tuple[str, Any]] = []
166
+
167
+if "PYODIDE" not in os.environ:
168
+ define_macros.append(("Py_LIMITED_API", Py_LIMITED_API))
169
170
sources += walk_sources("tcod/")
171
sources += walk_sources("libtcod/src/libtcod/")
0 commit comments