Make peer headers build with C++ sources
[libeap.git] / src / eap_common / eap_sim_common.h
index 48c8eaa..b6359a9 100644 (file)
 #ifndef EAP_SIM_COMMON_H
 #define EAP_SIM_COMMON_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define EAP_SIM_NONCE_S_LEN 16
 #define EAP_SIM_NONCE_MT_LEN 16
 #define EAP_SIM_MAC_LEN 16
@@ -232,4 +236,8 @@ int eap_sim_msg_add_encr_end(struct eap_sim_msg *msg, u8 *k_encr,
 
 void eap_sim_report_notification(void *msg_ctx, int notification, int aka);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EAP_SIM_COMMON_H */