File: gcc15.patch

package info (click to toggle)
efitools 1.9.2-3.6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 948 kB
  • sloc: ansic: 7,550; makefile: 131; perl: 119; sh: 35
file content (24 lines) | stat: -rw-r--r-- 430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/lib/asn1/typedefs.h
+++ b/lib/asn1/typedefs.h
@@ -28,9 +28,13 @@
 #define memcpy MEMCPY
 
 typedef unsigned char u_char;
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ < 202000L
+typedef unsigned char bool;
+#endif
 
 #else
 
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
@@ -52,7 +56,6 @@
 
 #endif
 
-typedef unsigned char bool;
 typedef unsigned int u_int;
 
 #define DBG1(s...)