aboutsummaryrefslogtreecommitdiff
path: root/include/erofs/compress.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/erofs/compress.h')
-rw-r--r--include/erofs/compress.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/erofs/compress.h b/include/erofs/compress.h
index 4434aaa..fdbf5ff 100644
--- a/include/erofs/compress.h
+++ b/include/erofs/compress.h
@@ -7,6 +7,11 @@
#ifndef __EROFS_COMPRESS_H
#define __EROFS_COMPRESS_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include "internal.h"
/* workaround for an upstream lz4 compression issue, which can crash us */
@@ -21,4 +26,8 @@ int z_erofs_compress_exit(void);
const char *z_erofs_list_available_compressors(unsigned int i);
+#ifdef __cplusplus
+}
+#endif
+
#endif