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 740357d commit 9392a48Copy full SHA for 9392a48
build_libtcod.py
@@ -180,8 +180,8 @@ def walk_sources(directory: str) -> Iterator[str]:
180
include_dirs.append("libtcod/src/zlib/")
181
182
183
-if sys.platform == "darwin":
184
- # Fix "implicit declaration of function 'close'" in zlib.
+if sys.platform != "win32":
+ # Fix implicit declaration of multiple functions in zlib.
185
define_macros.append(("HAVE_UNISTD_H", 1))
186
187
@@ -199,7 +199,6 @@ def walk_sources(directory: str) -> Iterator[str]:
199
"-fPIC",
200
"-Wno-deprecated-declarations",
201
"-Wno-discarded-qualifiers", # Ignore discarded restrict qualifiers.
202
- "-Wno-error=implicit-function-declaration", # From zlib sources
203
],
204
}
205
0 commit comments