New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#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

pelayomendez commented Mar 16, 2016

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 added a commit that referenced this issue Mar 17, 2016

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