Permalink
Browse files

Fix building on Visual Studio 2015

Closes #136.

Thanks to Pelayo Méndez.
  • Loading branch information...
1 parent caa394d commit 6a9382d8642e12a0ad1384eae80945f561075072 @ralight ralight committed Mar 17, 2016
Showing with 5 additions and 1 deletion.
  1. +1 −0 ChangeLog.txt
  2. +4 −1 config.h
View
@@ -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
@@ -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

0 comments on commit 6a9382d

Please sign in to comment.