Skip to contentSkip to conversation

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

PATCH Applied Daniel Cashman 2 participants 2 messages Jul 26, 2017 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsepol: cil: enable cpp compilation of cil.h.

From: Dan Cashman <[email protected]>

---
 libsepol/cil/include/cil/cil.h | 7 +++++++
 1 file changed, 7 insertions(+)
libsepol/cil/include/cil/cil.h +7 -0
index 4507892c..86117f24 100644
@@ -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
Applied
#1 lore raw
Quoted 3 lines · Daniel Cashman

From: Dan 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
index 4507892c..86117f24 100644
@@ -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