The check on line 14 in udunits2.h applies a fix for windows build systems, which breaks more recent versions, as the functions being remapped now exist in the Windows SDK. A simple fix has been applied which only applies the remapping if _MSC_VER < 1910 (equivalent to Visual Studio 2017).
The check on line 14 in udunits2.h applies a fix for windows build systems, which breaks more recent versions, as the functions being remapped now exist in the Windows SDK. A simple fix has been applied which only applies the remapping if _MSC_VER < 1910 (equivalent to Visual Studio 2017).
Tested with _MSC_VER == 1920 (Visual Studio 2019)