[Issue 23584] ImportC: expression expected, not `unsigned`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 28 07:37:26 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23584
--- Comment #2 from Jacob Carlborg <doob at me.com> ---
I'm just trying to compile a C project and reporting compile errors as they
appear.
The module __builtins.di already contains subs or implementations of a couple
of __builtins. Since it's not possible to pass types to regular functions a
macro needs to be added to importc.h that rewrites it to something that DMD can
handle. I added the following to importc.h:
#define __builtin_bit_cast(type,expr) (type) expr
And then could at least continue compiling until the next error.
--
More information about the Digitalmars-d-bugs
mailing list