1.1 --- a/src/cx/linked_list.h Mon Mar 01 22:19:06 2021 +0100 1.2 +++ b/src/cx/linked_list.h Sun Sep 26 11:57:27 2021 +0200 1.3 @@ -32,6 +32,10 @@ 1.4 #include <stddef.h> 1.5 #include "list.h" 1.6 1.7 +#ifdef __cplusplus 1.8 +extern "C" { 1.9 +#endif 1.10 + 1.11 void *cx_linked_list_last(void **begin, void **end, ptrdiff_t loc_next); 1.12 1.13 int cx_linked_list_add(void **begin, void **end, ptrdiff_t loc_prev, ptrdiff_t loc_next, void *new_node); 1.14 @@ -44,4 +48,8 @@ 1.15 1.16 size_t cxLinkedListRecalculateSize(CxList list); 1.17 1.18 +#ifdef __cplusplus 1.19 +} /* extern "C" */ 1.20 +#endif 1.21 + 1.22 #endif /* UCX_LINKED_LIST_H */