OSDN Git Service

ext4_utils: Wrap wipe.h to be C++ compatible.
authorTao Bao <tbao@google.com>
Mon, 13 Jul 2015 23:54:02 +0000 (16:54 -0700)
committerTao Bao <tbao@google.com>
Mon, 13 Jul 2015 23:54:02 +0000 (16:54 -0700)
Change-Id: Ieae03dd1afb9ef2028e8f4adaddbf8e9e09142f8

ext4_utils/wipe.h

index bd119e3..c7a86fa 100644 (file)
 #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