From 82b5787f70114740b4fe31df4f273466b6b48a11 Mon Sep 17 00:00:00 2001 From: Jakob Olsson <Jakob Olsson> Date: Mon, 25 Nov 2019 13:21:40 +0100 Subject: [PATCH] json-validator: update header to only use extern c for cpp compilor --- src/json-validator.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/json-validator.h b/src/json-validator.h index db593d5..c405e5b 100644 --- a/src/json-validator.h +++ b/src/json-validator.h @@ -1,5 +1,11 @@ #ifndef JSON_VALIDATOR_H -extern "C" { +#define JSON_VALIDATOR_H +#ifdef __cplusplus +extern "C" +{ +#endif bool json_object_validate_schema(struct json_object *j_obj, struct json_object *j_schema); +#ifdef __cplusplus } +#endif #endif \ No newline at end of file -- GitLab