Skip to content

Commit 8253dab

Browse files
committed
Fix zlib implicit declarations
1 parent 0d59697 commit 8253dab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build_libtcod.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ def walk_sources(directory: str) -> Iterator[str]:
180180
include_dirs.append("libtcod/src/zlib/")
181181

182182

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

187187

0 commit comments

Comments
 (0)