mirror of
https://github.com/rhboot/gnu-efi
synced 2026-08-26 00:26:04 -04:00
Make TRUE/FALSE compatible with C23/C++
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
parent
b6a6472874
commit
2a599ea133
1 changed files with 5 additions and 0 deletions
|
|
@ -34,9 +34,14 @@ typedef bool BOOLEAN;
|
|||
#define CONST const
|
||||
#endif
|
||||
#ifndef TRUE
|
||||
#if defined(__cplusplus) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L)
|
||||
#define TRUE true
|
||||
#define FALSE false
|
||||
#else
|
||||
#define TRUE ((BOOLEAN) 1)
|
||||
#define FALSE ((BOOLEAN) 0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL ((VOID *) 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue