[Issue 24132] ImportC: Add support for wchar_t, char16_t, char32_t
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 12 00:54:48 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24132
--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
C11 defines char32_t as uint_least32_t, which is specified to be a typedef, not
a macro or a keyword.
Preprocessors usually key off the existence of __cplusplus to turn C++
semantics on and off. ImportC currently does not do that.
I suggest putting:
typedef wchar_t unsigned short;
in your copy of importc.h and see how far that gets?
--
More information about the Digitalmars-d-bugs
mailing list