Fix building on Visual Studio 2015

Closes #136.

Thanks to Pelayo Méndez.
This commit is contained in:
Roger A. Light 2016-03-17 21:24:50 +00:00
parent caa394d0fe
commit 6a9382d864
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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