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 92ebbe9 commit 0887b58Copy full SHA for 0887b58
1 file changed
CMakeLists.txt
@@ -205,6 +205,11 @@ ELSE ()
205
206
IF (MINGW) # MinGW always does PIC and complains if we tell it to
207
STRING(REGEX REPLACE "-fPIC" "" CMAKE_SHARED_LIBRARY_C_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}")
208
+ # MinGW >= 3.14 uses the C99-style stdio functions
209
+ # automatically, but forks like mingw-w64 still want
210
+ # us to define this in order to use them
211
+ ADD_DEFINITIONS(-D__USE_MINGW_ANSI_STDIO=1)
212
+
213
ELSEIF (BUILD_SHARED_LIBS)
214
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fPIC")
215
ENDIF ()
0 commit comments