summaryrefslogtreecommitdiff
path: root/c_src/erlport.h
diff options
context:
space:
mode:
Diffstat (limited to 'c_src/erlport.h')
-rw-r--r--c_src/erlport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/c_src/erlport.h b/c_src/erlport.h
index 58b2591..2d7821f 100644
--- a/c_src/erlport.h
+++ b/c_src/erlport.h
@@ -6,6 +6,10 @@
#ifndef ERLPORT_H
#define ERLPORT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
ssize_t
read_command(unsigned char *buf, size_t maxlen, size_t length_size);
@@ -15,4 +19,7 @@ write_reply(unsigned char *msg, size_t len, size_t length_size);
int
write_status(char *msg);
+#ifdef __cplusplus
+}
+#endif
#endif