Make peer headers build with C++ sources
[libeap.git] / src / eap_common / eap_common.h
index b95e76b..9db77ed 100644 (file)
 
 #include "wpabuf.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 const u8 * eap_hdr_validate(int vendor, EapType eap_type,
                            const struct wpabuf *msg, size_t *plen);
 struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len,
@@ -25,4 +29,8 @@ void eap_update_len(struct wpabuf *msg);
 u8 eap_get_id(const struct wpabuf *msg);
 EapType eap_get_type(const struct wpabuf *msg);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EAP_COMMON_H */