From: Petri Lehtinen Date: Thu, 4 Feb 2010 18:50:01 +0000 (+0200) Subject: C++: #include in jansson.hpp X-Git-Tag: v1.3~16^2~3 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=jansson.git;a=commitdiff_plain;h=49d40f020b471f693fdd179729faa8be916f7114;hp=910a2f318bdf7d61d982ab76d2518d58d16b0365 C++: #include 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. --- 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 #include #include + +// Included so that standard functions don't end up in namespace json +#include + +// For free() #include namespace json {