dinput: Fix name clashes (Resend #2)

Alexandre Julliard julliard at winehq.org
Mon Jun 23 15:43:10 CDT 2008


Andrew Talbot <Andrew.Talbot at talbotville.com> writes:

> Not arguing, just clarifying:
>
> File #1: joystick_input.c has a non-static struct tag called "JoystickImpl".
> File #2: joystick_linuxinput.c has a differently defined non-static tag
> called "JoystickImpl". Since neither is declare static, do these not occupy
> the same namespace?

Static is for variables, not for types. Types are local to the file they
are declared in, that's why you need header files when you want to share
type declarations.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list