We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa40503 commit 3c1ec34Copy full SHA for 3c1ec34
patches/nasm.patch
@@ -0,0 +1,24 @@
1
+--- a/include/compiler.h
2
++++ b/include/compiler.h
3
+@@ -174,6 +174,12 @@
4
+ # define nullptr NULL
5
+ #endif
6
+
7
++/*
8
++ * C23 has bool as a built-in keyword, so we don't need to
9
++ * (and can't) define it ourselves.
10
++ */
11
++#if !defined(__cplusplus) && (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L)
12
++
13
+ /*
14
+ * At least ISO C++11 and C99 have both <stdbool.h> and _Bool.
15
+ */
16
+@@ -194,6 +200,8 @@
17
+ (void)(true && false); /* Verify that this macro expansion works */
18
+ bool; /* No longer the macro definition */
19
20
++#endif /* !C++ && !C23 */
21
22
23
+ * Compile-time assertion
24
0 commit comments