[Issue 24291] ImportC: cannot compile janet.c

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 30 04:47:28 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=24291

--- Comment #7 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Daniel from comment #5)
> #if defined(__GNUC__) && !defined(__EMSCRIPTEN__)
> #define JANET_USE_COMPUTED_GOTOS
> #endif

Unfortunately, if dmd #define'd __EMSCRIPTEN__ it would likely turn on some
other nutburger extensions ImportC doesn't support. importc.h cannot #undef
JANET_USE_COMPUTED_GOTOS because importc.h is #include'd first.

Turning off __GNUC__ will cause all kinds of other problems.

--


More information about the Digitalmars-d-bugs mailing list