From 9e771b20e7daf081bd764c2121c5e990c56ab35d Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Sun, 3 Feb 2013 22:16:27 -0500 Subject: [PATCH] Added extern "C" protectors to listhash.h Thanks to Marcin Adamski for the report! --- listhash/listhash.h.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/listhash/listhash.h.in b/listhash/listhash.h.in index acf8ec5..3d654a4 100644 --- a/listhash/listhash.h.in +++ b/listhash/listhash.h.in @@ -15,6 +15,9 @@ #ifndef @LISTHASH_PREFIX@_LISTHASH_H #define @LISTHASH_PREFIX@_LISTHASH_H +#ifdef __cplusplus +extern "C" { +#endif /***** list.c **********************************************************/ @@ -192,5 +195,9 @@ int @LISTHASH_PREFIX@_hash_add(@LISTHASH_PREFIX@_hash_t *, void *); int @LISTHASH_PREFIX@_hash_del(@LISTHASH_PREFIX@_hash_t *, @LISTHASH_PREFIX@_hashptr_t *); +#ifdef __cplusplus +} +#endif + #endif /* ! @LISTHASH_PREFIX@_LISTHASH_H */ -- 2.11.4.GIT