aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/mp_serial.h
diff options
context:
space:
mode:
Diffstat (limited to 'ncpd/mp_serial.h')
-rw-r--r--ncpd/mp_serial.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ncpd/mp_serial.h b/ncpd/mp_serial.h
index da559e4..40d465f 100644
--- a/ncpd/mp_serial.h
+++ b/ncpd/mp_serial.h
@@ -24,8 +24,14 @@
#ifndef _mp_serial_h
#define _mp_serial_h
+#ifdef __cplusplus
+extern "C" {
+#endif
int init_serial(const char *dev, int speed, int debug);
void ser_exit(int fd);
+#ifdef __cplusplus
+}
+#endif
#endif