From 2e28c45601a57b1d23e9cad33d2bdcc59e8a3f4f Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 1 Sep 2019 17:08:40 +0200 Subject: Add C++ gurads to publicly exported functions Signed-off-by: David Oberhollenzer --- include/sqfs/xattr.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/sqfs/xattr.h') diff --git a/include/sqfs/xattr.h b/include/sqfs/xattr.h index 3d5da39..2e48a4e 100644 --- a/include/sqfs/xattr.h +++ b/include/sqfs/xattr.h @@ -45,6 +45,10 @@ typedef struct { uint32_t unused; } sqfs_xattr_id_table_t; +#ifdef __cplusplus +extern "C" { +#endif + /* Get a prefix string from the ID or NULL if unknown */ const char *sqfs_get_xattr_prefix(E_SQFS_XATTR_TYPE id); @@ -54,4 +58,8 @@ int sqfs_get_xattr_prefix_id(const char *key); /* Check if a given xattr key can be encoded in squashfs at all. */ bool sqfs_has_xattr(const char *key); +#ifdef __cplusplus +} +#endif + #endif /* SQFS_XATTR_H */ -- cgit v1.2.3