Make peer headers build with C++ sources
[libeap.git] / src / eap_common / eap_ttls.h
index 797d084..09b6083 100644 (file)
 #ifndef EAP_TTLS_H
 #define EAP_TTLS_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct ttls_avp {
        be32 avp_code;
        be32 avp_length; /* 8-bit flags, 24-bit length;
@@ -68,4 +72,8 @@ do { \
 #define EAP_TTLS_CHAP_CHALLENGE_LEN 16
 #define EAP_TTLS_CHAP_PASSWORD_LEN 16
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EAP_TTLS_H */