diff options
| author | David McCann <mccannd@uk.ibm.com> | 2020-05-13 15:57:54 +0100 |
|---|---|---|
| committer | David McCann <mccannd@uk.ibm.com> | 2020-05-14 15:39:35 +0100 |
| commit | add7b13a9ae633cc41ebf6a42f717df126393c8a (patch) | |
| tree | 9964c11c35cbabcd7fb8024dfeb5cd1363daa119 /json_visit.h | |
| parent | 3648c3ed2c598472dc24240a944564c58bc94f84 (diff) | |
| download | json-c-add7b13a9ae633cc41ebf6a42f717df126393c8a.tar.gz | |
Improved support for IBM operating systems
Fix compiler errors and warnings when building on IBM operating systems such as AIX and IBM i.
Diffstat (limited to 'json_visit.h')
| -rw-r--r-- | json_visit.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/json_visit.h b/json_visit.h index de6582a..35c46f5 100644 --- a/json_visit.h +++ b/json_visit.h @@ -8,6 +8,10 @@ */ #include "json_object.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef int(json_c_visit_userfunc)(json_object *jso, int flags, json_object *parent_jso, const char *jso_key, size_t *jso_index, void *userarg); @@ -90,4 +94,8 @@ JSON_EXPORT int json_c_visit(json_object *jso, int future_flags, json_c_visit_us */ #define JSON_C_VISIT_RETURN_ERROR -1 +#ifdef __cplusplus +} +#endif + #endif /* _json_c_json_visit_h_ */ |
