Skip to contentSkip to conversation

f2fs-tools: use stdbool.h instead of bool

PATCH New Jaegeuk Kim via Linux-f2fs-devel 1 participant 1 message Oct 24, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs-tools: use stdbool.h instead of bool

The existing bool definition is broken for c23, where bool is now a keyword.

---
 include/f2fs_fs.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
include/f2fs_fs.h +1 -3
index 9534da98ca53..0cb9228288c0 100644
@@ -28,6 +28,7 @@
 #include <stddef.h>
 #include <string.h>
 #include <time.h>
+#include <stdbool.h>
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
@@ -119,9 +120,6 @@ typedef uint16_t	u16;
 typedef uint8_t		u8;
 typedef u32		block_t;
 typedef u32		nid_t;
-#ifndef bool
-typedef u8		bool;
-#endif
 typedef unsigned long	pgoff_t;
 typedef unsigned short	umode_t;
 
Signature · 8 lines
2.47.0.163.g1226f6d8fa-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel