Skip to content

Commit

Permalink
Fix building on Visual Studio 2015
Browse files Browse the repository at this point in the history
Closes eclipse-mosquitto#136.

Thanks to Pelayo Méndez.
  • Loading branch information
ralight committed Mar 17, 2016
1 parent caa394d commit 6a9382d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a9382d

Please sign in to comment.