Shouldn't c_long and c_ulong be library typedefs?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Wed Sep 5 17:35:04 PDT 2012
On 9/6/12, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
> On 9/6/12, bearophile <bearophileHUGS at lycos.com> wrote:
>> In Phobos there is a Typedef, but it's unusable :-(
>
> I forgot to mention, I'm using GDC which is based on 2.059 or earlier,
> and which can't compile the Typedef in 2.060 Phobos due to an ICE.
Anyway here's a temporary workaround:
static import core.stdc.config;
struct c_long
{
core.stdc.config.c_long val;
alias val this;
}
struct c_ulong
{
core.stdc.config.c_ulong val;
alias val this;
}
I should have posted all of this to D.learn not here, sorry.
More information about the Digitalmars-d
mailing list