From c07a87b07a2e19cef8bcae98b1b43125cf8385e3 Mon Sep 17 00:00:00 2001 From: Tom Everman Date: Wed, 26 May 2010 13:16:14 -0700 Subject: [PATCH] flow: Allow flow.h to be included from C++. --- lib/flow.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/flow.h b/lib/flow.h index 0cfe9e3b7..443ce95a2 100644 --- a/lib/flow.h +++ b/lib/flow.h @@ -27,6 +27,10 @@ #include "openvswitch/xflow.h" #include "util.h" +#ifdef __cplusplus +extern "C" { +#endif + struct ds; struct ofp_match; struct ofpbuf; @@ -123,4 +127,8 @@ flow_wildcards_init(struct flow_wildcards *wc, uint32_t wildcards) wc->nw_dst_mask = flow_nw_bits_to_mask(wildcards, OFPFW_NW_DST_SHIFT); } +#ifdef __cplusplus +} +#endif + #endif /* flow.h */ -- 2.47.0