| --- hdf5-1.12.0/src/H5win32defs.h.orig 2020-04-26 11:37:52.834712700 +0300 |
| +++ hdf5-1.12.0/src/H5win32defs.h 2020-04-26 11:39:17.538284100 +0300 |
| @@ -42,7 +42,7 @@ |
| #define HDisatty(F) _isatty(F) |
| |
| /* The isnan function needs underscore in VS2012 and earlier */ |
| -#if (_MSC_VER <= 1700) |
| +#if defined(_MSC_VER) && (_MSC_VER <= 1700) |
| #define HDisnan(X) _isnan(X) |
| #endif /* MSC_VER < 1700 */ |
| |
| --- hdf5-1.12.0/CMakeLists.txt.orig 2020-04-26 12:05:18.605661900 +0300 |
| +++ hdf5-1.12.0/CMakeLists.txt 2020-04-26 12:05:38.999021600 +0300 |
| @@ -564,7 +564,7 @@ |
| set (EXE_EXT "") |
| if (WIN32 OR MINGW) |
| set (EXE_EXT ".exe") |
| - add_compile_definitions (_BIND_TO_CURRENT_VCLIBS_VERSION=1 _CRT_SECURE_NO_WARNINGS _CONSOLE) |
| + add_compile_definitions (_BIND_TO_CURRENT_VCLIBS_VERSION=1 _CRT_SECURE_NO_WARNINGS _CONSOLE __USE_MINGW_ANSI_STDIO=1) |
| endif () |
| |
| if (MSVC) |