summaryrefslogtreecommitdiff
path: root/lib/pw.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-02-07 20:10:31 -0200
committerRenato Westphal <renato@opensourcerouting.org>2019-02-11 22:34:12 -0200
commit5e2444690bd0d2003e7d283f890b33e11ddd371f (patch)
tree2db840e94412a306855cc344d5e2b696c86aed19 /lib/pw.h
parentf8cd615bc4324386d173ad3615ab23b58da34752 (diff)
lib: add extern "C" {} blocks to all libfrr headers
These are necessary to use functions defined in these headers from C++. Signed-off-by: David Lamparter <equinox@diac24.net> Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/pw.h')
-rw-r--r--lib/pw.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/pw.h b/lib/pw.h
index 2cfaa47e5d..0b923ed6b1 100644
--- a/lib/pw.h
+++ b/lib/pw.h
@@ -20,6 +20,10 @@
#ifndef _FRR_PW_H
#define _FRR_PW_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* L2VPN name length. */
#define L2VPN_NAME_LEN 32
@@ -49,4 +53,8 @@ union pw_protocol_fields {
} bgp;
};
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FRR_PW_H */