Skip to content

Commit

Permalink
Fix mingwXX/ucrt64 redefinitions
Browse files Browse the repository at this point in the history
mingwXX/ucrt64 `vfw.h` has already defined these.
Fixes #242 and #342 (comment).
  • Loading branch information
Asd-g authored and qyot27 committed Oct 5, 2024
1 parent c664936 commit b222510
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ endif()

if(WIN32)
SET( CMAKE_SHARED_LINKER_FLAGS "-Wl,--enable-stdcall-fixup" )
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__CRT__NO_INLINE=1" )
elseif(APPLE)
# macOS uses Clang's linker, doesn't like --no-undefined
SET( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-undefined,error" )
Expand Down

0 comments on commit b222510

Please sign in to comment.