src/haptic/SDL_haptic.c
changeset 12462 b57435750c5b
parent 12304 27ba030d839f
child 12503 806492103856
     1.1 --- a/src/haptic/SDL_haptic.c	Wed Dec 05 19:03:15 2018 -0500
     1.2 +++ b/src/haptic/SDL_haptic.c	Thu Dec 06 09:22:00 2018 +0100
     1.3 @@ -26,7 +26,11 @@
     1.4  #include "SDL_assert.h"
     1.5  
     1.6  /* Global for SDL_windowshaptic.c */
     1.7 +#if (defined(SDL_HAPTIC_DINPUT) && SDL_HAPTIC_DINPUT) || (defined(SDL_HAPTIC_XINPUT) && SDL_HAPTIC_XINPUT)
     1.8  SDL_Haptic *SDL_haptics = NULL;
     1.9 +#else 
    1.10 +static SDL_Haptic *SDL_haptics = NULL;
    1.11 +#endif
    1.12  
    1.13  /*
    1.14   * Initializes the Haptic devices.