Currently "config.h" looks like this. /* MS has defined snprintf as deprecated */ #ifdef _MSC_VER #define snprintf _snprintf #endif snprintf is now implemented by Microsoft with MSVC14/Win10SDK in "sdtio.h" compiling fails because "stdio.h" contains a check if snprintf is defined previous. "config.h" should look like. /* MS has defined snprintf as deprecated, but MSVC14/Win10SDK implements it again. */ #ifdef _MSC_VER && _MSC_VER <= 1800 #define snprintf _snprintf #endif
Shouldn't that be #if defined(_MSC_VER) && _MSC_VER <= 1800 Probably better to compare against the version that introduced snprint. ie #if defined(_MSC_VER) && _MSC_VER < 1900
Adree with Adrian. Adrian can you please commit it?
committed
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.