summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>2013-05-12 13:42:20 +0200
committerPhilipp Wiesemann <philipp.wiesemann@arcor.de>2013-05-12 13:42:20 +0200
commitd1cc72dd52c165104e84addd7c30e4885d5db28e (patch)
tree115ec61b49472bde21bdb7530eb000fe6881de52
parentde43af1b54878f7a702dab4526102f3ce10e9d78 (diff)
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);
-rw-r--r--include/SDL_touch.h2
-rw-r--r--src/events/SDL_touch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/SDL_touch.h b/include/SDL_touch.h
index 55176a1d91..0b014d6bd0 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 c2bb22ecee..6fca4038d7 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;
}