Fri, 29 Aug 2025 13:37:00 +0200
fix broken C++ build
relates to #461
src/cx/kv_list.h | file | annotate | diff | comparison | revisions |
--- a/src/cx/kv_list.h Thu Aug 28 13:37:00 2025 +0200 +++ b/src/cx/kv_list.h Fri Aug 29 13:37:00 2025 +0200 @@ -190,7 +190,7 @@ // Generic Functions #ifdef __cplusplus - +} // extern "C" cx_attr_nonnull static inline int cxKvListSetKey(CxList *list, size_t index, CxHashKey key) { return cx_kv_list_set_key(list, index, key); @@ -235,7 +235,7 @@ cx_attr_nonnull static inline int cxKvListInsert(CxList *list, size_t index, CxHashKey key, void *value) { - return cx_kv_list_insert(list, index, key, value, value); + return cx_kv_list_insert(list, index, key, value); } cx_attr_nonnull @@ -253,7 +253,7 @@ static inline int cxKvListInsert(CxList *list, size_t index, const char *key, void *value) { return cx_kv_list_insert(list, index, cx_hash_key_str(key), value); } - +extern "C" { #else /* ! __cplusplus */ /** * Sets or updates the key of a list item.