mirror of
https://github.com/rhboot/gnu-efi
synced 2026-08-26 00:26:04 -04:00
Use C/C++ boolean when available
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
parent
4f8b339fac
commit
8efd8cde75
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue