aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-07-13 17:14:21 -0700
committerAlex Deymo <deymo@google.com>2015-11-16 10:47:39 -0800
commit3b6136435b37d31180d2b16d5f9fd6c4b9c23c1d (patch)
tree9b5f4b220260c248b0188356689c1b0f362b2fea
parent07a7be75a7442ef6c6e84f12492382a4d8aeb735 (diff)
downloadandroid_external_e2fsprogs-3b6136435b37d31180d2b16d5f9fd6c4b9c23c1d.tar.gz
android_external_e2fsprogs-3b6136435b37d31180d2b16d5f9fd6c4b9c23c1d.tar.bz2
android_external_e2fsprogs-3b6136435b37d31180d2b16d5f9fd6c4b9c23c1d.zip
Wrap tune2fs.h to be C++ compatible.
(cherry picked from commit b0af72276f654c4d5f9bd0756802115a83437b82) Change-Id: I42c72c04e95b82530ec889f956980034a0b52953
-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