From d81bdbfa881de5623be37d46ee0819901762d925 Mon Sep 17 00:00:00 2001 From: Patrix Date: Thu, 22 Apr 2021 16:13:49 +0200 Subject: [PATCH] Fixed compile error on gcc: renamed 'typeof' function pointer in HSQAPI to 'type_of' to avoid naming collision (gcc implements it's own typeof keyword) https://gcc.gnu.org/onlinedocs/gcc/Typeof.html --- dependencies/sqrat/include/sqmodule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependencies/sqrat/include/sqmodule.h b/dependencies/sqrat/include/sqmodule.h index 2fc19aa..4633432 100644 --- a/dependencies/sqrat/include/sqmodule.h +++ b/dependencies/sqrat/include/sqmodule.h @@ -205,7 +205,7 @@ extern "C" { SQRESULT (*setclosureroot)(HSQUIRRELVM v, SQInteger idx); SQRESULT (*getclosureroot)(HSQUIRRELVM v, SQInteger idx); void (*pushthread)(HSQUIRRELVM v, HSQUIRRELVM thread); - SQRESULT (*typeof)(HSQUIRRELVM v, SQInteger idx); + SQRESULT (*type_of)(HSQUIRRELVM v, SQInteger idx); SQHash (*gethash)(HSQUIRRELVM v, SQInteger idx); SQRELEASEHOOK (*getreleasehook)(HSQUIRRELVM v, SQInteger idx); SQRESULT (*getfunctioninfo)(HSQUIRRELVM v, SQInteger level, SQFunctionInfo* fi);