mirror of
https://github.com/openvswitch/ovs
synced 2025-10-21 14:49:41 +00:00
Add extern "C" { ... } to some header files to support usage from C++.
From partner.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user