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/compress.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/sqfs/compress.h') diff --git a/include/sqfs/compress.h b/include/sqfs/compress.h index c6de185..3860353 100644 --- a/include/sqfs/compress.h +++ b/include/sqfs/compress.h @@ -51,6 +51,10 @@ struct compressor_t { void (*destroy)(compressor_t *stream); }; +#ifdef __cplusplus +extern "C" { +#endif + bool compressor_exists(E_SQFS_COMPRESSOR id); /* block_size is the configured block size for the SquashFS image. Needed @@ -68,4 +72,8 @@ const char *compressor_name_from_id(E_SQFS_COMPRESSOR id); int compressor_id_from_name(const char *name, E_SQFS_COMPRESSOR *out); +#ifdef __cplusplus +} +#endif + #endif /* COMPRESS_H */ -- cgit v1.2.3