From: Tao Bao Date: Mon, 14 Mar 2016 20:35:54 +0000 (-0400) Subject: Wrap tune2fs.h to be C++ compatible X-Git-Tag: v1.43-WIP-2016-03-15~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ccb2366d84b3121c796fdea36ae3e21be336727;p=thirdparty%2Fe2fsprogs.git Wrap tune2fs.h to be C++ compatible Signed-off-by: Theodore Ts'o --- diff --git a/misc/tune2fs.h b/misc/tune2fs.h index 897e3363c..7b7e431ee 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