From 8efd8cde753fb0eec9ccb2a9940b2c52a3c276c8 Mon Sep 17 00:00:00 2001 From: Callum Farmer Date: Tue, 4 Apr 2023 14:20:31 +0100 Subject: [PATCH] Use C/C++ boolean when available Signed-off-by: Callum Farmer --- inc/efidef.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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