mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Revert "base: Set the correct Windows preprocessor var for asio"
This reverts commit 420e600864
.
This commit is contained in:
parent
268a45e8dd
commit
2b8dd47a6c
@ -245,20 +245,6 @@ endif()
|
||||
if(WIN32)
|
||||
add_definitions(-D_WEBSOCKETPP_CPP11_STL_)
|
||||
target_compile_options(obs-websocket PRIVATE /wd4267)
|
||||
|
||||
# Set the correct Windows preprocessor var for asio
|
||||
macro(get_WIN32_WINNT version)
|
||||
if(WIN32 AND CMAKE_SYSTEM_VERSION)
|
||||
set(ver ${CMAKE_SYSTEM_VERSION})
|
||||
string(REPLACE "." "" ver ${ver})
|
||||
string(REGEX REPLACE "([0-9])" "0\\1" ver ${ver})
|
||||
|
||||
set(${version} "0x${ver}")
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
get_win32_winnt(ver)
|
||||
add_definitions(-D_WIN32_WINNT=${ver})
|
||||
elseif(UNIX AND NOT APPLE)
|
||||
target_compile_options(
|
||||
obs-websocket PRIVATE -Wall -Wextra -Wno-missing-field-initializers
|
||||
|
Loading…
Reference in New Issue
Block a user