Last version of SDL2 win32 release build error

I checked out last commit snapshot 1dec8bbf3b922107ff6da8a591795585d2122888 [13763] UTC Time “2020-04-15 17:33:09” hidapi: Blacklist the Razer Lycosa keyboard from enumeration. It’s not a joystick and it hangs device enumeration.

I try to build SDL2 for win32 with Visual Studio 2019 (v142) and I get an error for compilation file: src\sensor\windows\SDL_windowssensor.c

lines 44,45,46:

Error C2374 'SENSOR_DATA_TYPE_ANGULAR_VELOCITY_X_DEGREES_PER_SECOND': redefinition; multiple initialization
Error C2374 'SENSOR_DATA_TYPE_ANGULAR_VELOCITY_Y_DEGREES_PER_SECOND': redefinition; multiple initialization
Error C2374 'SENSOR_DATA_TYPE_ANGULAR_VELOCITY_Z_DEGREES_PER_SECOND': redefinition; multiple initialization

I reported it here (with workaround attached):
https://bugzilla.libsdl.org/show_bug.cgi?id=5086

1 Like