[ovs-dev] [PATCH] Move those define to 'extern "C"' block

duanjiong djduanjiong at gmail.com
Mon Nov 6 06:06:12 UTC 2017



Signed-off-by: Duan Jiong <djduanjiong at gmail.com>
---
 include/openvswitch/packets.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/openvswitch/packets.h
b/include/openvswitch/packets.h
index be91e02..c74ce28 100644
--- a/include/openvswitch/packets.h
+++ b/include/openvswitch/packets.h
@@ -73,10 +73,6 @@ union flow_vlan_hdr {
     };
 };

-#ifdef __cplusplus
-}
-#endif
-
 /* Network Service Header keys */
 struct flow_nsh {
     uint8_t flags;
@@ -93,4 +89,8 @@ struct flow_nsh {

 #define FLOW_NSH_F_MASK ((1 << 2) - 1)

+#ifdef __cplusplus
+}
+#endif
+
 #endif /* packets.h */
-- 
1.8.3.1


More information about the dev mailing list