Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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);
  • Loading branch information
philippwiesemann committed May 12, 2013
1 parent 0f5d772 commit 0031607
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/SDL_touch.h
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/events/SDL_touch.c
Expand Up @@ -39,7 +39,7 @@ SDL_TouchInit(void)
}

int
SDL_GetNumTouchDevices()
SDL_GetNumTouchDevices(void)
{
return SDL_num_touch;
}
Expand Down

0 comments on commit 0031607

Please sign in to comment.