unset(HAVE_WIN32_WINNT CACHE)
if(HAVE_WIN32_WINNT)
- if(HAVE_WIN32_WINNT STRLESS "0x0501")
+ if(HAVE_WIN32_WINNT LESS 0x0501)
# Windows XP is required for freeaddrinfo, getaddrinfo
message(FATAL_ERROR "Building for Windows XP or newer is required.")
endif()
# Pre-fill detection results based on target OS version
if(MINGW OR MSVC)
- if(HAVE_WIN32_WINNT STRLESS "0x0600")
+ if(HAVE_WIN32_WINNT LESS 0x0600)
set(HAVE_INET_NTOP 0)
set(HAVE_INET_PTON 0)
else() # Windows Vista or newer
_add_if("Unicode" ENABLE_UNICODE)
_add_if("threadsafe" HAVE_ATOMIC OR
(USE_THREADS_POSIX AND HAVE_PTHREAD_H) OR
- (WIN32 AND HAVE_WIN32_WINNT GREATER_EQUAL 0x600))
+ (WIN32 AND HAVE_WIN32_WINNT GREATER_EQUAL 0x0600))
_add_if("Debug" ENABLE_DEBUG)
_add_if("TrackMemory" ENABLE_CURLDEBUG)
_add_if("ECH" SSL_ENABLED AND HAVE_ECH)