summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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