Add extern "C" in mir-htab.h for compiling by cpp.
#include "mir-varr.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define FALSE 0
#define TRUE 1
@@ -242,4 +246,8 @@ DEF_VARR (htab_ind_t)
#define HTAB_COLLISIONS(T, V) (HTAB_OP (T, collisions) (V))
#define HTAB_FOREACH_ELEM(T, V, F, A) (HTAB_OP (T, foreach_elem) (V, F, A))
+#ifdef __cplusplus
+}
+#endif
+
#endif /* #ifndef MIR_HTAB_H */
