msvc: don't declare HAVE_TIMEZONE for older MSVC (#3956)

It was introduced in MSVC 15 (Visual Studio 2017).
This commit is contained in:
Ben Boeckel 2024-03-09 18:25:40 +00:00 committed by GitHub
parent c29a02d5e6
commit b1054b4ef3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,7 +78,9 @@ if (WINDOWS)
endif ()
if (NOT UNIX AND NOT CYGWIN)
set (${HDF_PREFIX}_HAVE_GETCONSOLESCREENBUFFERINFO 1)
if (MSVC_VERSION GREATER_EQUAL 1900)
set (${HDF_PREFIX}_HAVE_TIMEZONE 1)
endif ()
set (${HDF_PREFIX}_HAVE_GETTIMEOFDAY 1)
set (${HDF_PREFIX}_HAVE_LIBWS2_32 1)
set (${HDF_PREFIX}_HAVE_LIBWSOCK32 1)