extern variable question

Alexandre Julliard julliard at winehq.org
Tue Sep 14 20:59:11 CDT 2004


Robert Reif <reif at earthlink.net> writes:

> OK.  Here is the beginnings of a joystick test.  I want to use
> c_dfDIJoystick2
> which is defined as  extern in dinput.h and exists in dinput.dll.so
> but is not
> exported.  It's also not exported in windows dinput.dll but it is in
> dinput.lib.  This test (minus the wine hack) will compile, link (with
> dinput.lib)
> and run fine in XP.   How do I get the same behavior in wine?  I don't
> think the #include "../data_formats.c" hack is acceptable.

No, clearly not. I guess the best solution would be to put that data
in one of the existing static libraries, for instance in libdxguid.a.
It's not 100% compatible, but it should be close enough.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list