aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/quickjs/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/quickjs/list.h')
-rw-r--r--src/shared/quickjs/list.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/quickjs/list.h b/src/shared/quickjs/list.h
index 809831115..b8dd71681 100644
--- a/src/shared/quickjs/list.h
+++ b/src/shared/quickjs/list.h
@@ -28,6 +28,10 @@
#include <stddef.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct list_head {
struct list_head *prev;
struct list_head *next;
@@ -96,4 +100,8 @@ static inline int list_empty(struct list_head *el)
for(el = (head)->prev, el1 = el->prev; el != (head); \
el = el1, el1 = el->prev)
+#ifdef __cplusplus
+} /* extern "C" { */
+#endif
+
#endif /* LIST_H */