diff --git a/inc/efidef.h b/inc/efidef.h index 3816331..d9fd8b3 100644 --- a/inc/efidef.h +++ b/inc/efidef.h @@ -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)