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
This commit is contained in:
Patrix
2021-04-22 16:13:49 +02:00
parent 14782a9d53
commit 4934b44c0b
2 changed files with 2 additions and 2 deletions

View File

@@ -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);