summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorb'Nigel Croxon <allura@localhost>2023-04-17 11:39:01 +0000
committerb'Nigel Croxon <allura@localhost>2023-04-17 11:39:01 +0000
commitbc46fbdc846d806c2ae094ed7b872c78badad5b0 (patch)
tree8afe565cb0f1d97d4aceae358982fdb4ede643bb
parentdcced03469f3ef51b581a7cfd54884e3198bbc33 (diff)
parent2a599ea13337d1fb2f9e4402b67f8a88db6a8502 (diff)
downloadgnu-efi-bc46fbdc846d806c2ae094ed7b872c78badad5b0.tar.gz
Merge /u/gmbr3/gnu-efi/ branch TRUEFALSE into master
https://sourceforge.net/p/gnu-efi/code/merge-requests/49/
-rw-r--r--inc/efidef.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/efidef.h b/inc/efidef.h
index 5825771..5953b69 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
#if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L)