json-c/json-c — Issue #9: Missing stdint.h include in json_ojbect.h
Author: ford-prefect
Created: 2012-01-13 13:28:02+00:00
State: open

The following patch is needed to compile cleanly (since json_object.h uses int32_t, etc.). I figure this is too trivial for a format-patch, but happy to provide one if preferred.

diff --git a/json_object.h b/json_object.h
index d56d12c..b4474f3 100644
--- a/json_object.h
+++ b/json_object.h
@@ -12,6 +12,8 @@
#ifndef _json_object_h_
#define _json_object_h_

+#include
+
#ifdef __cplusplus
extern "C" {
#endif