From ab75397e2124ef01e75f9fa6f7e9c962abebfbd2 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 13 Apr 2025 16:14:55 +0200 Subject: [PATCH] TCC now supports m-generic --- README.md | 3 --- tests/test-mgeneric.c | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index f362b178..595880d1 100644 --- a/README.md +++ b/README.md @@ -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, diff --git a/tests/test-mgeneric.c b/tests/test-mgeneric.c index ed0e8807..3c98aca5 100644 --- a/tests/test-mgeneric.c +++ b/tests/test-mgeneric.c @@ -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)