]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/chap.h
Adding 'extern "C" {' and '}' declarations to exported header files
[ppp.git] / pppd / chap.h
index e693fc91e8a95b3108c2504513d0ffbeae14c75b..21373bdbb07e8d83fc6a7908a7663c03d1ce8a2b 100644 (file)
 
 #include "pppdconf.h"
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 /*
  * CHAP packets begin with a standard header with code, id, len (2 bytes).
  */
@@ -165,4 +169,8 @@ extern void chap_auth_with_peer(int unit, char *our_name, int digest_code);
 /* Represents the CHAP protocol to the main pppd code */
 extern struct protent chap_protent;
 
+#ifdef  __cplusplus
+}
 #endif
+
+#endif // PPP_CHAP_NEW_H