From 4ccb2366d84b3121c796fdea36ae3e21be336727 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Mon, 14 Mar 2016 16:35:54 -0400 Subject: [PATCH] Wrap tune2fs.h to be C++ compatible Signed-off-by: Theodore Ts'o --- misc/tune2fs.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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