C++: #include <cstdio> in jansson.hpp
authorPetri Lehtinen <petri@digip.org>
Thu, 4 Feb 2010 18:50:01 +0000 (20:50 +0200)
committerPetri 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

index 51c1763..f435493 100644 (file)
 #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 {