From db8dd88f4423e332085a78d69653c802601cdd44 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Tue, 1 Oct 2024 16:33:17 -0700 Subject: [PATCH] Add extern "C" decls to aalogparse.h for C++ usage of aalogparse Signed-off-by: Ryan Lee (cherry picked from commit 3cb61b6b41501c6940b0ea0fbfff2c5fbc747d8d) Signed-off-by: John Johansen --- libraries/libapparmor/include/aalogparse.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/libapparmor/include/aalogparse.h b/libraries/libapparmor/include/aalogparse.h index 8684b9e3a..dabffe295 100644 --- a/libraries/libapparmor/include/aalogparse.h +++ b/libraries/libapparmor/include/aalogparse.h @@ -19,6 +19,10 @@ #ifndef __LIBAALOGPARSE_H_ #define __LIBAALOGPARSE_H_ +#ifdef __cplusplus +extern "C" { +#endif + #define AA_RECORD_EXEC_MMAP 1 #define AA_RECORD_READ 2 #define AA_RECORD_WRITE 4 @@ -138,5 +142,9 @@ parse_record(const char *str); void free_record(aa_log_record *record); +#ifdef __cplusplus +} +#endif + #endif