projects
/
profile
/
ivi
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
910a2f3
)
C++: #include <cstdio> in jansson.hpp
author
Petri Lehtinen
<petri@digip.org>
Thu, 4 Feb 2010 18:50:01 +0000
(20:50 +0200)
committer
Petri Lehtinen
<petri@digip.org>
Thu, 4 Feb 2010 18:50:02 +0000
(20:50 +0200)
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.
src/jansson.hpp
patch
|
blob
|
history
diff --git
a/src/jansson.hpp
b/src/jansson.hpp
index
51c1763
..
f435493
100644
(file)
--- 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 {