]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Wrap tune2fs.h to be C++ compatible
authorTao Bao <tbao@google.com>
Mon, 14 Mar 2016 20:35:54 +0000 (16:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 Mar 2016 22:38:26 +0000 (18:38 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.h

index 897e3363c57b6620fde3ebd63719acbad49313de..7b7e431ee95ddca0a9a753090e8d48aa4fc5fe33 100644 (file)
@@ -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