extern(C) and mangling type names

Mike Parker via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 15 05:24:15 PST 2017


On Wednesday, 15 February 2017 at 12:32:42 UTC, Kagamin wrote:
> On Wednesday, 15 February 2017 at 12:00:51 UTC, Mike Parker 
> wrote:
>> version(UseX11) {
>>     struct Display;
>>     alias EGLNativeWindowType = Display*;
>> }
>> else version(UseWayland) {
>>     struct wl_display;
>>     EGLNativeWindowType = wgl_display*;
>> }
>
> If you use void* for Display*, why do you need casts? What do 
> you cast it to?

In this case I don't of course. Shouldn't have mentioned it in 
that context.


More information about the Digitalmars-d mailing list