Make peer headers build with C++ sources
[libeap.git] / src / eap_peer / eap_methods.h
index 4330b57..57302b2 100644 (file)
 
 #include "eap_common/eap_defs.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 const struct eap_method * eap_peer_get_eap_method(int vendor, EapType method);
 const struct eap_method * eap_peer_get_methods(size_t *count);
 
@@ -111,4 +115,8 @@ int eap_peer_vendor_test_register(void);
 int eap_peer_tnc_register(void);
 int eap_peer_pwd_register(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EAP_METHODS_H */