OSDN Git Service

Wrap tune2fs.h to be C++ compatible.
authorTao Bao <tbao@google.com>
Tue, 14 Jul 2015 00:14:21 +0000 (17:14 -0700)
committerRom Lemarchand <romlem@google.com>
Mon, 16 Nov 2015 22:27:56 +0000 (14:27 -0800)
Change-Id: If189342477e4d5072ca4ed067090935f9ba2971c
(cherry picked from commit b0af72276f654c4d5f9bd0756802115a83437b82)

misc/tune2fs.h

index 897e336..7b7e431 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