File: u-boot-sam460ex-stdc23.patch

package info (click to toggle)
qemu 1%3A10.1.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 415,888 kB
  • sloc: ansic: 4,763,605; pascal: 115,173; python: 105,698; asm: 68,689; sh: 53,146; makefile: 27,519; perl: 18,863; cpp: 11,443; xml: 3,629; objc: 2,877; yacc: 2,505; php: 1,299; tcl: 1,296; lex: 1,110; sql: 71; awk: 43; sed: 35; javascript: 7
file content (66 lines) | stat: -rw-r--r-- 1,511 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Subject: roms/u-boot-sam460ex: support c23 (bool)
From: Michael Tokarev <mjt@tls.msk.ru>
Date: Mon, 25 Aug 2025 22:34:21 +0300
Forwarded: no
Bug-Debian: https://bugs.debian.org/1097693

In c23, bool, true and false are keywords,
don't try to (re)define them.  Instead,
include <stdbool.h>.

diff --git a/roms/u-boot-sam460ex/include/xyzModem.h b/roms/u-boot-sam460ex/include/xyzModem.h
--- a/roms/u-boot-sam460ex/include/xyzModem.h
+++ b/roms/u-boot-sam460ex/include/xyzModem.h
@@ -97,13 +97,7 @@ typedef struct {
 #endif
 } connection_info_t;
 
-#ifndef	BOOL_WAS_DEFINED
-#define BOOL_WAS_DEFINED
-typedef unsigned int bool;
-#endif
-
-#define false 0
-#define true 1
+#include <stdbool.h>
 
 #endif
 
diff --git a/roms/u-boot-sam460ex/board/ACube/menu/list.h b/roms/u-boot-sam460ex/board/ACube/menu/list.h
--- a/roms/u-boot-sam460ex/board/ACube/menu/list.h
+++ b/roms/u-boot-sam460ex/board/ACube/menu/list.h
@@ -3,14 +3,3 @@
 
-#ifndef bool_defined
-#define bool_defined
-typedef int bool;
-#endif
-
-#ifndef true
-#define true 1
-#endif
-
-#ifndef false
-#define false 0
-#endif
+#include <stdbool.h>
 
diff --git a/roms/u-boot-sam460ex/board/ACube/menu/menu.h b/roms/u-boot-sam460ex/board/ACube/menu/menu.h
--- a/roms/u-boot-sam460ex/board/ACube/menu/menu.h
+++ b/roms/u-boot-sam460ex/board/ACube/menu/menu.h
@@ -29,14 +29,3 @@
 
-#ifndef bool_defined
-#define bool_defined
-typedef int bool;
-#endif
-
-#ifndef true
-#define true 1
-#endif
-
-#ifndef false
-#define false 0
-#endif
+#include <stdbool.h>