Closed abemedia closed 1 year ago
I guess it will be broken in many other places too, but at least try to avoid this error by:
1) overriding __HAVE_FLOAT32
as 0
2) implementing strtof32
as a noop stub
Stubs worked, however there's loads more issues. Since all these issues are in the standard library, do you know a version of it that works with c-for-go?
When trying to build bindings for Python 3.9 I get the following error:
processing python.yml ⠹[ERR] /usr/include/stdlib.h:140:17: unexpected identifier strtof32, expected one of ['(', ')', ',', ':', ';', '=', '[', '{', _Bool, _Complex, _Noreturn, _Static_assert, asm, auto, char, const, double, enum, extern, float, inline, int, long, register, restrict, short, signed, static, struct, typedef, typedefname, typeof, union, unsigned, void, volatile]
This is the stdlib code causing the issue:
It seems both
_Float32
and_Float64
don't exist in moderc.org/ccThis is my c-for-go config so far: