aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misc/tune2fs.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/misc/tune2fs.h b/misc/tune2fs.h
index 897e3363..7b7e431e 100644
--- a/misc/tune2fs.h
+++ b/misc/tune2fs.h
@@ -7,7 +7,20 @@
* %End-Header%
*/
+#ifndef _TUNE2FS_H_
+#define _TUNE2FS_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Takes exactly the same args as the tune2fs exectuable.
* Is the entrypoint for libtune2fs.
*/
int tune2fs_main(int argc, char **argv);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif