Skip to content

Commit 9392a48

Browse files
committed
Fix zlib implicit declarations
1 parent 740357d commit 9392a48

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build_libtcod.py

Lines changed: 2 additions & 3 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

@@ -199,7 +199,6 @@ def walk_sources(directory: str) -> Iterator[str]:
199199
"-fPIC",
200200
"-Wno-deprecated-declarations",
201201
"-Wno-discarded-qualifiers", # Ignore discarded restrict qualifiers.
202-
"-Wno-error=implicit-function-declaration", # From zlib sources
203202
],
204203
}
205204

0 commit comments

Comments
 (0)