mirror of
https://github.com/status-im/miniupnp.git
synced 2025-03-01 14:00:33 +00:00
miniupnpc: allow _WIN32_WINNT override
This commit is contained in:
parent
58837ef586
commit
daa90d3c5e
@ -40,7 +40,10 @@ if (NOT WIN32)
|
||||
target_compile_definitions(miniupnpc-private INTERFACE _NETBSD_SOURCE)
|
||||
endif ()
|
||||
else ()
|
||||
target_compile_definitions(miniupnpc-private INTERFACE _WIN32_WINNT=0x0501) # XP or higher for getnameinfo and friends
|
||||
set (MINIUPNPC_TARGET_WINDOWS_VERSION "0x0501" CACHE STRING "Minimum target Windows version as hex string") # XP or higher for getnameinfo and friends
|
||||
if (MINIUPNPC_TARGET_WINDOWS_VERSION)
|
||||
target_compile_definitions(miniupnpc-private INTERFACE _WIN32_WINNT=${MINIUPNPC_TARGET_WINDOWS_VERSION})
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
if (APPLE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user