Procházet zdrojové kódy

Merge /u/gmbr3/gnu-efi/ branch boolean into master

https://sourceforge.net/p/gnu-efi/code/merge-requests/43/
b'Nigel Croxon před 2 roky
rodič
revize
b6a6472874
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 8 0
      inc/efidef.h

+ 8 - 0
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