Skip to content

Commit 765a184

Browse files
committed
Fix zlib implicit declarations
1 parent 55f49d1 commit 765a184

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
@@ -183,8 +183,8 @@ def walk_sources(directory: str) -> Iterator[str]:
183183
include_dirs.append("libtcod/src/zlib/")
184184

185185

186-
if sys.platform == "darwin":
187-
# Fix "implicit declaration of function 'close'" in zlib.
186+
if sys.platform != "win32":
187+
# Fix implicit declaration of multiple functions in zlib.
188188
define_macros.append(("HAVE_UNISTD_H", 1))
189189

190190

@@ -202,7 +202,6 @@ def walk_sources(directory: str) -> Iterator[str]:
202202
"-fPIC",
203203
"-Wno-deprecated-declarations",
204204
"-Wno-discarded-qualifiers", # Ignore discarded restrict qualifiers.
205-
"-Wno-error=implicit-function-declaration", # From zlib sources
206205
],
207206
}
208207

0 commit comments

Comments
 (0)