diff options
author | Ben Pfaff <blp@ovn.org> | 2017-07-30 18:03:24 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-07-31 16:03:39 -0700 |
commit | ec30ca5f1cd44101bc5314e002c1b185ba2d1868 (patch) | |
tree | dcfad4a3e3d6fb55570598ee647b9b02a24f6cb6 /include/openvswitch/flow.h | |
parent | 994bfc298502e6f9178dd231c569a6b305a8299f (diff) | |
download | openvswitch-ec30ca5f1cd44101bc5314e002c1b185ba2d1868.tar.gz |
Add 'extern "C"' for all relevant public header files, plus a build check.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
Diffstat (limited to 'include/openvswitch/flow.h')
-rw-r--r-- | include/openvswitch/flow.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/openvswitch/flow.h b/include/openvswitch/flow.h index 36a2a8577..e9782d72c 100644 --- a/include/openvswitch/flow.h +++ b/include/openvswitch/flow.h @@ -20,6 +20,10 @@ #include "openvswitch/packets.h" #include "openvswitch/util.h" +#ifdef __cplusplus +extern "C" { +#endif + /* This sequence number should be incremented whenever anything involving flows * or the wildcarding of flows changes. This will cause build assertion * failures in places which likely need to be updated. */ @@ -225,4 +229,8 @@ uint32_t flow_wildcards_hash(const struct flow_wildcards *, uint32_t basis); bool flow_wildcards_equal(const struct flow_wildcards *, const struct flow_wildcards *); +#ifdef __cplusplus +} +#endif + #endif /* flow.h */ |