* lib/hash.h: Add extern "C".
+2020-10-16 Bruno Haible <bruno@clisp.org>
+
+ hash, xhash: Make usable from C++.
+ * lib/hash.h: Add extern "C".
+
2020-10-16 Bruno Haible <bruno@clisp.org>
hash, xhash: Move comments to the .h file.
# include <stdio.h>
# include <stdbool.h>
+# ifdef __cplusplus
+extern "C" {
+# endif
+
struct hash_tuning
{
/* This structure is mainly used for 'hash_initialize', see the block
table, don't modify the table and return NULL. */
extern void *hash_delete (Hash_table *table, const void *entry);
+# ifdef __cplusplus
+}
+# endif
+
#endif