#define snprintf sprintf_s in config.h with Visual Studio not compiling #136

pelayomendez opened this Issue Mar 16, 2016 · 0 comments


None yet

2 participants


While trying to produce a version of my app that uses libmosquitto in windows 10 / Visual studio 2015 I came to this issue regarding "config.h". I had to coment that line:

// #define snprintf sprintf_s

I'm not an expert on the windows side but after googleing a bit I found there are some kind of issue with that define as snprintf implementation is afected by VS version.


@ralight ralight added this to the 1.4.9 milestone Mar 17, 2016
@ralight ralight added bug build labels Mar 17, 2016
@ralight ralight added a commit that referenced this issue Mar 17, 2016
@ralight ralight Fix building on Visual Studio 2015
Closes #136.

Thanks to Pelayo Méndez.
@ralight ralight closed this May 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment