extern(C) and mangling type names

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 15 04:32:42 PST 2017


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?


More information about the Digitalmars-d mailing list