aboutsummaryrefslogtreecommitdiff
path: root/include/erofs/err.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/erofs/err.h')
-rw-r--r--include/erofs/err.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/erofs/err.h b/include/erofs/err.h
index a33bdd1..18f152a 100644
--- a/include/erofs/err.h
+++ b/include/erofs/err.h
@@ -7,6 +7,11 @@
#ifndef __EROFS_ERR_H
#define __EROFS_ERR_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <errno.h>
#define MAX_ERRNO (4095)
@@ -28,4 +33,8 @@ static inline long PTR_ERR(const void *ptr)
return (long) ptr;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif