--- a/src/cx/iterator.h Sat Oct 19 13:43:10 2024 +0200 +++ b/src/cx/iterator.h Sat Oct 19 13:45:49 2024 +0200 @@ -38,6 +38,10 @@ #include "common.h" +#ifdef __cplusplus +extern "C" { +#endif + struct cx_iterator_base_s { /** * True iff the iterator points to valid data. @@ -262,4 +266,8 @@ bool remove_keeps_order ); +#ifdef __cplusplus +} // extern "C" +#endif + #endif // UCX_ITERATOR_H