diff --git a/ChangeLog.txt b/ChangeLog.txt index 1b784725..6f200a1f 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -21,6 +21,7 @@ Clients: Build: - Fix string quoting in CMakeLists.txt. Closes #4. +- Fix building on Visual Studio 2015. Closes #136. 1.4.8 - 20160214 diff --git a/config.h b/config.h index 25a08606..fbe4babb 100644 --- a/config.h +++ b/config.h @@ -11,8 +11,11 @@ * * Generally for Windows native support. * ============================================================ */ +#if defined(_MSC_VER) && _MSC_VER < 1900 +# define snprintf sprintf_s +#endif + #ifdef WIN32 -#define snprintf sprintf_s # ifndef strcasecmp # define strcasecmp strcmpi # endif