mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
RedfishPkg: Don't define bool type if building in C23 mode
In C23 bool is a built-in type, so it's not necessary to typedef bool in RedfishCrtLib.h. Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
This commit is contained in:
parent
772fa11ac8
commit
4518ba2a2b
1 changed files with 11 additions and 8 deletions
|
|
@ -69,14 +69,17 @@
|
|||
//
|
||||
// Basic types mapping
|
||||
//
|
||||
typedef UINTN size_t;
|
||||
typedef INTN ssize_t;
|
||||
typedef INT32 time_t;
|
||||
typedef INT32 int32_t;
|
||||
typedef UINT32 uint32_t;
|
||||
typedef UINT16 uint16_t;
|
||||
typedef UINT8 uint8_t;
|
||||
typedef BOOLEAN bool;
|
||||
typedef UINTN size_t;
|
||||
typedef INTN ssize_t;
|
||||
typedef INT32 time_t;
|
||||
typedef INT32 int32_t;
|
||||
typedef UINT32 uint32_t;
|
||||
typedef UINT16 uint16_t;
|
||||
typedef UINT8 uint8_t;
|
||||
// In C23, bool is a built-in type
|
||||
#if __STDC_VERSION__ < 202311L
|
||||
typedef BOOLEAN bool;
|
||||
#endif
|
||||
|
||||
#define true (1 == 1)
|
||||
#define false (1 == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue