libsepol: cil: enable cpp compilation of cil.h.
PATCH 1/1 libsepol: cil: enable cpp compilation of cil.h.
From: Dan Cashman <[email protected]>
Signed-off-by Daniel Cashman <[email protected]>
--- libsepol/cil/include/cil/cil.h | 7 +++++++ 1 file changed, 7 insertions(+)
libsepol/cil/include/cil/cil.h +7 -0
@@ -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
Signature · 1 line
2.14.0.rc0.400.g1c36432dff-goog
jwcart2
AppliedQuoted 3 lines · Daniel Cashman
From: Dan Cashman <[email protected]>
Signed-off-by Daniel Cashman <[email protected]>
Applied.
Thanks,
Jim
Quoted 28 lines
--- libsepol/cil/include/cil/cil.h | 7 +++++++ 1 file changed, 7 insertions(+)libsepol/cil/include/cil/cil.h +7
-0@@ -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
Signature · 2 lines
James Carter <[email protected]> National Security Agency