From 13e82fe19e59ccbc69dcdf0f3d786cf06d4a66fa Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Mon, 13 Jul 2015 16:54:02 -0700 Subject: [PATCH] ext4_utils: Wrap wipe.h to be C++ compatible. Change-Id: I78422a26cfe5c54f79fcb336e02460339eae7df2 (cherry picked from commit 7d056b49edc7bef93203baa043eec49c7efd1046) --- ext4_utils/wipe.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ext4_utils/wipe.h b/ext4_utils/wipe.h index bd119e35..c7a86fa0 100644 --- a/ext4_utils/wipe.h +++ b/ext4_utils/wipe.h @@ -17,6 +17,10 @@ #ifndef _WIPE_H_ #define _WIPE_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include "ext4_utils.h" /* Set WIPE_IS_SUPPORTED to 1 if the current platform supports @@ -30,4 +34,8 @@ int wipe_block_device(int fd, s64 len); +#ifdef __cplusplus +} +#endif + #endif -- 2.11.0