]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/ecp.h
Adding 'extern "C" {' and '}' declarations to exported header files
[ppp.git] / pppd / ecp.h
index 807a100fd1e921d7329b5ff018229c40b9c8336f..975d79b876a7c8ca71d72340d717a7e1acb6d5ca 100644 (file)
  *
  * $Id: ecp.h,v 1.2 2003/01/10 07:12:36 fcusack Exp $
  */
-#include "pppdconf.h"
-
 #ifndef PPP_ECP_H
 #define PPP_ECP_H
 
+#include "pppdconf.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef PPP_ECP
 #define PPP_ECP 0x8053
 #endif
@@ -53,4 +57,8 @@ extern ecp_options ecp_hisoptions[];
 
 extern struct protent ecp_protent;
 
+#ifdef __cplusplus
+}
 #endif
+
+#endif // PPP_ECP_H