Make peer headers build with C++ sources
[libeap.git] / src / eap_peer / eap.h
index 40d0b69..6a1b511 100644 (file)
 #include "eap_common/eap_defs.h"
 #include "eap_peer/eap_methods.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct eap_sm;
 struct wpa_config_blob;
 struct wpabuf;
@@ -288,4 +292,8 @@ int eap_is_wps_pin_enrollee(struct eap_peer_config *conf);
 
 #endif /* IEEE8021X_EAPOL */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EAP_H */