Skip to content

Fix snprintf #232

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

Merged
merged 2 commits into from
Mar 31, 2015
Merged

Fix snprintf #232

merged 2 commits into from
Mar 31, 2015

Conversation

cdunn2001
Copy link
Contributor

See #231, #224, and #218.

baruchsiach and others added 2 commits March 31, 2015 12:37
This reverts commit 1c58876.

std::snprintf() is only available in C++11, which is not provided by
all compilers. Since the C library snprintf() can easily be used as a
replacement on Linux systems, this patch changes jsoncpp to use the C
library snprintf() instead of C++11 std::snprintf(), fixing the build error
below:

    src/lib_json/json_writer.cpp:33:18: error: 'snprintf' is not a member of 'std'

See open-source-parsers#231, open-source-parsers#224, and open-source-parsers#218.
@cdunn2001 cdunn2001 merged this pull request into open-source-parsers:master Mar 31, 2015
@cdunn2001 cdunn2001 deleted the fix-snprintf branch March 31, 2015 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants