summaryrefslogtreecommitdiff
path: root/pppd/magic.h
diff options
context:
space:
mode:
authorEivind Næss <eivnaes@yahoo.com>2023-03-04 05:47:11 +0000
committerEivind Næss <eivnaes@yahoo.com>2023-03-17 14:18:53 +0000
commit4f3e40659fcccce45068473ae94cfead18260c77 (patch)
treee2abfad7e92176f1c2da5a93bcb63ad57c1294cd /pppd/magic.h
parent827e4952d6bcc8dd9c8fdda54a509e5b59685c34 (diff)
downloadppp-4f3e40659fcccce45068473ae94cfead18260c77.tar.gz
Adding 'extern "C" {' and '}' declarations to exported header files
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
Diffstat (limited to 'pppd/magic.h')
-rw-r--r--pppd/magic.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pppd/magic.h b/pppd/magic.h
index 70e4ce5..68cbf9b 100644
--- a/pppd/magic.h
+++ b/pppd/magic.h
@@ -44,10 +44,18 @@
#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