diff --git a/include/SDL_touch.h b/include/SDL_touch.h index 55176a1d9..0b014d6bd 100644 --- a/include/SDL_touch.h +++ b/include/SDL_touch.h @@ -60,7 +60,7 @@ typedef struct SDL_Finger /** * \brief Get the number of registered touch devices. */ -extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(); +extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void); /** * \brief Get the touch ID with the given index, or 0 if the index is invalid. diff --git a/src/events/SDL_touch.c b/src/events/SDL_touch.c index c2bb22ece..6fca4038d 100644 --- a/src/events/SDL_touch.c +++ b/src/events/SDL_touch.c @@ -39,7 +39,7 @@ SDL_TouchInit(void) } int -SDL_GetNumTouchDevices() +SDL_GetNumTouchDevices(void) { return SDL_num_touch; }