diff mbox

libsepol: cil: enable cpp compilation of cil.h.

Message ID 20170726150400.143620-1-dcashman@android.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Daniel Cashman July 26, 2017, 3:04 p.m. UTC
From: Dan Cashman <dcashman@google.com>

Signed-off-by: Daniel Cashman <dcashman@google.com>
---
 libsepol/cil/include/cil/cil.h | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

James Carter July 26, 2017, 5:30 p.m. UTC | #1
On 07/26/2017 11:04 AM, Daniel Cashman wrote:
> From: Dan Cashman <dcashman@google.com>
> 
> Signed-off-by: Daniel Cashman <dcashman@google.com>

Applied.

Thanks,
Jim

> ---
>   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
>
diff mbox

Patch

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