Skip to content

Commit 3c1ec34

Browse files
committed
Change C version for nasm
1 parent aa40503 commit 3c1ec34

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

patches/nasm.patch

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)