diff options
author | Petri Lehtinen <petri@digip.org> | 2010-02-04 20:50:01 +0200 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2010-02-04 20:50:02 +0200 |
commit | 49d40f020b471f693fdd179729faa8be916f7114 (patch) | |
tree | a6ffd305f7ced6b52ce0b934b0474b34b6ce8d08 | |
parent | 910a2f318bdf7d61d982ab76d2518d58d16b0365 (diff) | |
download | jansson-49d40f020b471f693fdd179729faa8be916f7114.zip jansson-49d40f020b471f693fdd179729faa8be916f7114.tar.gz jansson-49d40f020b471f693fdd179729faa8be916f7114.tar.bz2 |
C++: #include <cstdio> in jansson.hpp
This is to avoid standard C functions ending up in namespace json, as
jansson.h is #included in there, and jansson.h in turn #includes
stdio.h.
-rw-r--r-- | src/jansson.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jansson.hpp b/src/jansson.hpp index 51c1763..f435493 100644 --- a/src/jansson.hpp +++ b/src/jansson.hpp @@ -11,6 +11,11 @@ #include <ostream> #include <istream> #include <sstream> + +// Included so that standard functions don't end up in namespace json +#include <cstdio> + +// For free() #include <cstdlib> namespace json { |