aboutsummaryrefslogtreecommitdiff
path: root/include/bio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bio.h')
-rw-r--r--include/bio.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/bio.h b/include/bio.h
index 600f0948..473389a7 100644
--- a/include/bio.h
+++ b/include/bio.h
@@ -1,5 +1,8 @@
-#ifndef _BIOH_
-#define _BIOH_ 1
+#ifndef _BIO_H_
+#define _BIO_H_ 1
+#if defined(__cplusplus)
+extern "C" {
+#endif
#include <sys/types.h> /* for off_t */
#include <fcntl.h> /* for O_RDONLY, O_WRONLY */
@@ -78,4 +81,7 @@ char* Brdstr(Biobuf*, int, int);
long Bgetrune(Biobuf*);
int Bputrune(Biobuf*, long);
+#if defined(__cplusplus)
+}
+#endif
#endif