在 2023/9/15 03:53, Oleg Tolmatcev 写道:
diff --git a/mingw-w64-crt/lib-common/dinput8.def 
b/mingw-w64-crt/lib-common/dinput8.def
... +DirectInput8Create@20
+DllCanUnloadNow
+DllGetClassObject@12
+DllRegisterServer
+DllUnregisterServer
+GetdfDIJoystick

Please add necessary stdcall suffixes for these functions.


diff --git a/mingw-w64-headers/include/dinput.h 
b/mingw-w64-headers/include/dinput.h
...
+extern LPCDIDATAFORMAT WINAPI GetdfDIJoystick();

This has to be `GetdfDIJoystick(void);` which makes a difference when compiled 
as C.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to