Emscripten: Changed return type of callback implementations from int to EM_BOOL.

The prototypes are declared with EM_BOOL (which is currently an int) in html5.h.
This commit is contained in:
Philipp Wiesemann 2015-02-15 21:44:36 +01:00
parent 83859b12ea
commit 34e9ba9c45
2 changed files with 13 additions and 13 deletions

View file

@ -46,7 +46,7 @@ static SDL_joylist_item *SDL_joylist_tail = NULL;
static int numjoysticks = 0;
static int instance_counter = 0;
int
EM_BOOL
Emscripten_JoyStickConnected(int eventType, const EmscriptenGamepadEvent *gamepadEvent, void *userData)
{
int i;
@ -127,7 +127,7 @@ Emscripten_JoyStickConnected(int eventType, const EmscriptenGamepadEvent *gamepa
return 1;
}
int
EM_BOOL
Emscripten_JoyStickDisconnected(int eventType, const EmscriptenGamepadEvent *gamepadEvent, void *userData)
{
SDL_joylist_item *item = SDL_joylist;