Skip to content

Commit

Permalink
msvc: don't declare HAVE_TIMEZONE for older MSVC (#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 Mar 9, 2024
1 parent c29a02d commit b1054b4
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 b1054b4

Please sign in to comment.