cmake: Fix building with -DSDL_HAPTIC=Off

This commit is contained in:
stfx committed 2020-07-08 17:28:34 +02:00
1 parent fe97f01bc6
commit b162629546
3 files changed
+11 -2

No files matched your search

+2
View File
@@ -50,6 +50,7 @@ struct haptic_hwdata
/*
* Haptic system effect data.
*/
#if SDL_HAPTIC_DINPUT || SDL_HAPTIC_XINPUT
struct haptic_hweffect
{
#if SDL_HAPTIC_DINPUT
@@ -60,6 +61,7 @@ struct haptic_hweffect
XINPUT_VIBRATION vibration;
#endif
};
#endif
/*
* List of available haptic devices.