]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/magic.h
Adding 'extern "C" {' and '}' declarations to exported header files
[ppp.git] / pppd / magic.h
index 70e4ce528238390da2367aab47b01a3e075fe9b4..68cbf9be24d395d92cb53610c0e410d6623df3f3 100644 (file)
 
 #include "pppdconf.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void magic_init (void);        /* Initialize the magic number generator */
 u_int32_t magic (void);        /* Returns the next magic number */
 
 /* Fill buffer with random bytes */
 void random_bytes (unsigned char *buf, int len);
 
+#ifdef __cplusplus
+}
 #endif
+
+#endif // PPP_MAGIC_H