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 55f49d1 commit 765a184Copy full SHA for 765a184
build_libtcod.py
@@ -183,8 +183,8 @@ def walk_sources(directory: str) -> Iterator[str]:
183
include_dirs.append("libtcod/src/zlib/")
184
185
186
-if sys.platform == "darwin":
187
- # Fix "implicit declaration of function 'close'" in zlib.
+if sys.platform != "win32":
+ # Fix implicit declaration of multiple functions in zlib.
188
define_macros.append(("HAVE_UNISTD_H", 1))
189
190
@@ -202,7 +202,6 @@ def walk_sources(directory: str) -> Iterator[str]:
202
"-fPIC",
203
"-Wno-deprecated-declarations",
204
"-Wno-discarded-qualifiers", # Ignore discarded restrict qualifiers.
205
- "-Wno-error=implicit-function-declaration", # From zlib sources
206
],
207
}
208
0 commit comments