summaryrefslogtreecommitdiff
path: root/lib/vlan.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vlan.h')
-rw-r--r--lib/vlan.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/vlan.h b/lib/vlan.h
index 6d15e62dfc..eea2633d4e 100644
--- a/lib/vlan.h
+++ b/lib/vlan.h
@@ -22,8 +22,16 @@
#ifndef __VLAN_H__
#define __VLAN_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* VLAN Identifier */
typedef uint16_t vlanid_t;
#define VLANID_MAX 4095
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __VLAN_H__ */