From: Dan Cashman <dcashman@xxxxxxxxxx> Signed-off-by: Daniel Cashman <dcashman@xxxxxxxxxx> --- libsepol/cil/include/cil/cil.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libsepol/cil/include/cil/cil.h b/libsepol/cil/include/cil/cil.h index 4507892c..86117f24 100644 --- a/libsepol/cil/include/cil/cil.h +++ b/libsepol/cil/include/cil/cil.h @@ -32,6 +32,10 @@ #include <sepol/policydb/policydb.h> +#ifdef __cplusplus +extern "C" { +#endif + struct cil_db; typedef struct cil_db cil_db_t; @@ -71,4 +75,7 @@ extern void cil_log(enum cil_log_level lvl, const char *msg, ...); extern void cil_set_malloc_error_handler(void (*handler)(void)); +#ifdef __cplusplus +} +#endif #endif -- 2.14.0.rc0.400.g1c36432dff-goog