TCC now supports m-generic

This commit is contained in:
Patrick Pelissier committed 2025-05-07 21:02:24 +02:00
1 parent cc97aa887f
commit ab75397e21
2 files changed
+1 -6

No files matched your search

-3
View File
@@ -9407,9 +9407,6 @@ If no type is associated to this variable, an error is reported by the compiler.
This header needs a C23 compliant compiler or a C11 compiler providing the typeof extension (like GCC, CLANG, MSVC).
> [!NOTE]
> TCC is not supported yet due to some bugs in the compiler.
This provides the same level of flexibility of the C++. However, there is some drawbacks of using this generic interface:
* Error messages can be more complex,
+1 -3
View File
@@ -29,9 +29,7 @@
#include "coverage.h"
// Generic is not supported if not C11
// TCC has some issues in the preprocessing.
// See https://lists.nongnu.org/archive/html/tinycc-devel/2023-12/msg00004.html
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__TINYC__)
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
ARRAY_DEF(array_int, int)
#define M_OPL_array_int_t() ARRAY_OPLIST(array_int, M_BASIC_OPLIST)