mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
synced 2024-11-14 13:23:42 +08:00
f2fs-tools: use stdbool.h instead of bool
The existing bool definition is broken for c23, where bool is now a keyword. Signed-off-by: Elliott Hughes <enh@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
43d6b668fb
commit
6617d15a66
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user