Add #ifdef __cplusplus to all header files
[lwext4.git] / lwext4 / ext4_balloc.h
index 48542dafb77b0d1549fe56b176bee62640217766..c25b2598346fdb37b818a700ab943eace084bc98 100644 (file)
 #ifndef EXT4_BALLOC_H_
 #define EXT4_BALLOC_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include "ext4_config.h"
 #include "ext4_types.h"
 
@@ -103,6 +107,10 @@ int ext4_balloc_alloc_block(struct ext4_inode_ref *inode_ref,
 int ext4_balloc_try_alloc_block(struct ext4_inode_ref *inode_ref,
                                ext4_fsblk_t baddr, bool *free);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EXT4_BALLOC_H_ */
 
 /**