summaryrefslogtreecommitdiff
path: root/send.h
diff options
context:
space:
mode:
Diffstat (limited to 'send.h')
-rw-r--r--send.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/send.h b/send.h
index 48d425ae..e8da785f 100644
--- a/send.h
+++ b/send.h
@@ -19,6 +19,10 @@
#include "ctree.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define BTRFS_SEND_STREAM_MAGIC "btrfs-stream"
#define BTRFS_SEND_STREAM_VERSION 1
@@ -132,3 +136,7 @@ enum {
#ifdef __KERNEL__
long btrfs_ioctl_send(struct file *mnt_file, void __user *arg);
#endif
+
+#ifdef __cplusplus
+}
+#endif