Skip to content

Commit 69e0e82

Browse files
committed
fixup! fixup! Update vendored zlib library
1 parent f14e9a5 commit 69e0e82

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"files.trimTrailingWhitespace": true,
1515
"files.associations": {
1616
"*.spec": "python",
17+
"*.in": "c"
1718
},
1819
"mypy-type-checker.importStrategy": "fromEnvironment",
1920
"cSpell.words": [

build_libtcod.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def walk_sources(directory: str) -> Iterator[str]:
162162

163163
libraries: list[str] = [*build_sdl.libraries]
164164
library_dirs: list[str] = [*build_sdl.library_dirs]
165-
define_macros: list[tuple[str, Any]] = [("Z_SOLO", None)] # [("Py_LIMITED_API", Py_LIMITED_API)]
165+
define_macros: list[tuple[str, Any]] = [] # [("Py_LIMITED_API", Py_LIMITED_API)]
166166

167167
sources += walk_sources("tcod/")
168168
sources += walk_sources("libtcod/src/libtcod/")
@@ -180,7 +180,7 @@ def walk_sources(directory: str) -> Iterator[str]:
180180
include_dirs.append("zlib/")
181181

182182

183-
if sys.platform == "darwin":
183+
if sys.platform != "win32":
184184
# Fix "implicit declaration of function 'close'" in zlib.
185185
define_macros.append(("HAVE_UNISTD_H", 1))
186186

0 commit comments

Comments
 (0)