--- netcdf-4.6.0/config.h.cmake.in.orig	2018-01-25 18:31:50.000000000 +0100
+++ netcdf-4.6.0/config.h.cmake.in	2018-03-16 18:09:40.620183800 +0100
@@ -64,6 +64,11 @@
    #define strtoll _strtoi64
 #endif /*_MSC_VER */
 
+/* define flags needed when windows runtime is used (MINGW and MSVC) */
+#cmakedefine MINGW
+#cmakedefine HAVE_WIN_TEMP
+#cmakedefine HAVE_WIN_SSCANF
+
 #cmakedefine const
 
 #ifndef _FILE_OFFSET_BITS
