add extern "C" to iterator.h

Sat, 19 Oct 2024 13:45:49 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 19 Oct 2024 13:45:49 +0200
changeset 933
40bf2f212d2a
parent 932
484dab606292
child 934
a43ed636d1ff

add extern "C" to iterator.h

src/cx/iterator.h file | annotate | diff | comparison | revisions
--- 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

mercurial