summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorb'Nigel Croxon <allura@localhost>2023-04-04 13:32:29 +0000
committerb'Nigel Croxon <allura@localhost>2023-04-04 13:32:29 +0000
commitb6a647287486cb50542ecdfe1027af8b0fc50bbd (patch)
tree81fe4b7190e9a32cd7ec954021df9b9e283e8cd6
parent7c89273dbe78f438037684216723b3ed8f6558b6 (diff)
parent8efd8cde753fb0eec9ccb2a9940b2c52a3c276c8 (diff)
downloadgnu-efi-b6a647287486cb50542ecdfe1027af8b0fc50bbd.tar.gz
Merge /u/gmbr3/gnu-efi/ branch boolean into master
https://sourceforge.net/p/gnu-efi/code/merge-requests/43/
-rw-r--r--inc/efidef.h8
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