Re: [PATCH] libsepol: cil: enable cpp compilation of cil.h.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/26/2017 11:04 AM, Daniel Cashman wrote:
From: Dan Cashman <dcashman@xxxxxxxxxx>

Signed-off-by: Daniel Cashman <dcashman@xxxxxxxxxx>

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



--
James Carter <jwcart2@xxxxxxxxxxxxx>
National Security Agency



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux