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:
Rebecca Cran 2025-05-26 08:07:41 -06:00 committed by mergify[bot]
parent 772fa11ac8
commit 4518ba2a2b

View file

@ -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)