diff --git a/src/hidapi/SDL_hidapi.c b/src/hidapi/SDL_hidapi.c index 4cffde0d4..d8a330728 100644 --- a/src/hidapi/SDL_hidapi.c +++ b/src/hidapi/SDL_hidapi.c @@ -27,9 +27,10 @@ * This merges the two, at a small performance cost, until distributions * have granted access to /dev/hidraw* */ - #include "../SDL_internal.h" + #include "SDL_loadso.h" +#include "SDL_hidapi.h" #ifdef SDL_JOYSTICK_HIDAPI diff --git a/src/hidapi/SDL_hidapi.h b/src/hidapi/SDL_hidapi.h index 743539099..148352041 100644 --- a/src/hidapi/SDL_hidapi.h +++ b/src/hidapi/SDL_hidapi.h @@ -18,6 +18,7 @@ misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ +#include "../SDL_internal.h" #ifdef SDL_JOYSTICK_HIDAPI