diff options
author | Callum Farmer <gmbr3@opensuse.org> | 2023-04-04 14:20:31 +0100 |
---|---|---|
committer | Callum Farmer <gmbr3@opensuse.org> | 2023-04-04 14:20:31 +0100 |
commit | 8efd8cde753fb0eec9ccb2a9940b2c52a3c276c8 (patch) | |
tree | b89600e83a4e940bb6ef70e2a7ca21a8509622d1 | |
parent | 4f8b339facb471192e021fffd5db545a0fbddbc3 (diff) | |
download | gnu-efi-8efd8cde753fb0eec9ccb2a9940b2c52a3c276c8.tar.gz |
Use C/C++ boolean when available
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
-rw-r--r-- | inc/efidef.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/efidef.h b/inc/efidef.h index a552c7d..3816331 100644 --- a/inc/efidef.h +++ b/inc/efidef.h @@ -20,7 +20,15 @@ Revision History --*/ +#if !defined(__cplusplus) +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +typedef _Bool BOOLEAN; +#else typedef unsigned char BOOLEAN; +#endif +#else +typedef bool BOOLEAN; +#endif #ifndef CONST #define CONST const |