mirror of
https://github.com/yawut/SDL.git
synced 2026-08-22 16:55:29 -05:00
Fixed bug 1845 - SDL_GetNumTouchDevices() has incorrect prototype
nfxjfg SDL_touch.h:63:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] Is: extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(); Should be: extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void);
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -39,7 +39,7 @@ SDL_TouchInit(void)
|
||||
}
|
||||
|
||||
int
|
||||
SDL_GetNumTouchDevices()
|
||||
SDL_GetNumTouchDevices(void)
|
||||
{
|
||||
return SDL_num_touch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user