From 5e2444690bd0d2003e7d283f890b33e11ddd371f Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Thu, 7 Feb 2019 20:10:31 -0200 Subject: lib: add extern "C" {} blocks to all libfrr headers These are necessary to use functions defined in these headers from C++. Signed-off-by: David Lamparter Signed-off-by: Renato Westphal --- lib/json.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/json.h') diff --git a/lib/json.h b/lib/json.h index d349162304..a5251662be 100644 --- a/lib/json.h +++ b/lib/json.h @@ -21,6 +21,10 @@ #ifndef _QUAGGA_JSON_H #define _QUAGGA_JSON_H +#ifdef __cplusplus +extern "C" { +#endif + #if defined(HAVE_JSON_C_JSON_H) #include @@ -81,4 +85,8 @@ extern void json_object_free(struct json_object *obj); #define JSON_C_TO_STRING_NOSLASHESCAPE (1<<4) #endif +#ifdef __cplusplus +} +#endif + #endif /* _QUAGGA_JSON_H */ -- cgit v1.2.3