Skip to content

Commit

Permalink
msvc: don't declare HAVE_TIMEZONE for older MSVC (HDFGroup#3956)
Browse files Browse the repository at this point in the history
It was introduced in MSVC 15 (Visual Studio 2017).
  • Loading branch information
mathstuf authored and lrknox committed Mar 21, 2024
1 parent 876c1bc commit d9e3553
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/cmake/ConfigureChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ if (WINDOWS)
endif ()
if (NOT UNIX AND NOT CYGWIN)
set (${HDF_PREFIX}_HAVE_GETCONSOLESCREENBUFFERINFO 1)
set (${HDF_PREFIX}_HAVE_TIMEZONE 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)
Expand Down

0 comments on commit d9e3553

Please sign in to comment.