I'm not sure who's fault it is, but I'm not longer able to cross compile
SDL2:
/bin/bash ../build-scripts/updaterev.sh
CC build/SDL_windows_gaming_input.lo
../src/joystick/windows/SDL_windows_gaming_input.c: In function
‘WGI_JoystickOpen’:
../src/joystick/windows/SDL_windows_gaming_input.c:657:13: error:
unknown type name ‘__FIReference_1_int’; did you mean
‘__FIReference_1_INT32’?
657 | __FIReference_1_int *full_capacityP, *curr_capacityP;
| ^~~
| __FIReference_1_INT32
In file included from
/tmp/cross-mingw-w64/x86_64-w64-mingw32/include/windows.gaming.input.h:622,
from
../src/joystick/windows/SDL_windows_gaming_input.c:33:
../src/joystick/windows/SDL_windows_gaming_input.c:659:114: warning:
passing argument 2 of
‘report->lpVtbl->get_FullChargeCapacityInMilliwattHours’ from
incompatible pointer type [-Wincompatible-pointer-types]
659 | hr =
__x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_FullChargeCapacityInMilliwattHours(report,
_capacityP);
|
^~~
|
|
|
int **
../src/joystick/windows/SDL_windows_gaming_input.c:659:114: note:
expected ‘__FIReference_1_INT32 **’ but argument is of type ‘int **’
../src/joystick/windows/SDL_windows_gaming_input.c:661:17: warning:
implicit declaration of function ‘__FIReference_1_int_get_Value’
[-Wimplicit-function-declaration]
661 | __FIReference_1_int_get_Value(full_capacityP,
_capacity);
| ^
../src/joystick/windows/SDL_windows_gaming_input.c:662:17: warning:
implicit declaration of function ‘__FIReference_1_int_Release’
[-Wimplicit-function-declaration]
662 | __FIReference_1_int_Release(full_capacityP);
| ^~~
../src/joystick/windows/SDL_windows_gaming_input.c:665:113: warning:
passing argument 2 of
‘report->lpVtbl->get_RemainingCapacityInMilliwattHours’ from
incompatible pointer type [-Wincompatible-pointer-types]
665 | hr =
__x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_RemainingCapacityInMilliwattHours(report,
_capacityP);
|
^~~
|
|
|
int **
../src/joystick/windows/SDL_windows_gaming_input.c:665:113: note:
expected ‘__FIReference_1_INT32 **’ but argument is of type ‘int **’
make: *** [Makefile:730: build/SDL_windows_gaming_input.lo] Error 1
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public