attribute decl in version decl

Mike Parker aldacron at gmail.com
Mon Sep 19 06:15:20 PDT 2011


On 9/19/2011 1:55 AM, Ellery Newcomer wrote:
> Just came across some old D code that does this:
>
> version(linux){
> 	extern(C):
> }
>
> <Hundreds of OpenGL decls>
>
>
>
> in dmd 2.055, the extern(C) is not being applied to the OpenGL decls.
> should it?

Change it to the following, and you're golden.

extern(System):

<Hundreds of OpenGL decls>


More information about the Digitalmars-d-learn mailing list