commit cd9485c063b23265dc54b9ebf331906cff98edc7
parent 8fca7e95b329d68eb851bc42bedba4c7274f4be5
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 20 Jan 2023 13:46:55 +0100
build: Redirect typeof() in pcc
Pcc does not disable typeof() compile operator even when std=c99 is used
so the only way to solve this problem is to use the preprocessor to
redirect the source typeof() to Typeof().
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/scripts/build/tool/pcc.mk b/scripts/build/tool/pcc.mk
@@ -1,3 +1,4 @@
include $(BUILDDIR)/tool/gnu.mk
COMP = pcc
+TOOL_CFLAGS=-Dtypeof=Typeof