Skip to content

Commit

Permalink
f2fs-tools: use stdbool.h instead of bool
Browse files Browse the repository at this point in the history
The existing bool definition is broken for c23, where bool is now a keyword.

Signed-off-by: Elliott Hughes <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
Jaegeuk Kim committed Oct 24, 2024
1 parent 43d6b66 commit 5a3f73e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/f2fs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <stddef.h>
#include <string.h>
#include <time.h>
#include <stdbool.h>

#ifdef HAVE_CONFIG_H
#include <config.h>
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 5a3f73e

Please sign in to comment.