From 005851c645edc8dc232fd2a1e0f4009ca4459297 Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 13 Mar 2022 20:23:15 +0100 Subject: [PATCH] exile.h: Add extern "C" guards --- exile.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/exile.h b/exile.h index 55dd5bf..7b6ef6b 100644 --- a/exile.h +++ b/exile.h @@ -97,6 +97,11 @@ //don't mount recursive #define EXILE_MOUNT_NOT_REC 1<<5 +#ifdef __cplusplus +extern "C" { +#endif + + /* Fine-granular approach available with landlock */ #if HAVE_LANDLOCK == 1 #define EXILE_FS_ALLOW_REMOVE_DIR (1 << 7) @@ -2235,3 +2240,6 @@ char *exile_launch_get(struct exile_launch_params *launch_params, size_t *n) *n = size; return result; } +#ifdef __cplusplus +} +#endif