From fbfffdbbf988e33ad96430f0ce9bebde8210c9df Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 4 Feb 2010 09:37:30 -0800 Subject: Add extern "C" { ... } to some header files to support usage from C++. From partner. --- lib/shash.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/shash.h') diff --git a/lib/shash.h b/lib/shash.h index 5794a20f4..471918b27 100644 --- a/lib/shash.h +++ b/lib/shash.h @@ -19,6 +19,10 @@ #include "hmap.h" +#ifdef __cplusplus +extern "C" { +#endif + struct shash_node { struct hmap_node node; char *name; @@ -48,4 +52,8 @@ struct shash_node *shash_find(const struct shash *, const char *); void *shash_find_data(const struct shash *, const char *); struct shash_node *shash_first(const struct shash *); +#ifdef __cplusplus +} +#endif + #endif /* shash.h */ -- cgit v1.2.1