include/SDL_system.h
changeset 9599 223fbcc6a327
parent 9597 345bc53b52b8
child 9619 b94b6d0bff0f
     1.1 --- a/include/SDL_system.h	Wed May 13 22:39:27 2015 -0700
     1.2 +++ b/include/SDL_system.h	Wed May 13 22:39:32 2015 -0700
     1.3 @@ -46,8 +46,8 @@
     1.4  /**
     1.5     \brief Set a function that is called for every windows message, before TranslateMessage()
     1.6  */
     1.7 -typedef void (*SDL_WindowsMessageHook)(void *hWnd, unsigned int message, Uint64 wParam, Sint64 lParam);
     1.8 -extern DECLSPEC void SDLCALL SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback);
     1.9 +typedef void (SDLCALL * SDL_WindowsMessageHook)(void *userdata, void *hWnd, unsigned int message, Uint64 wParam, Sint64 lParam);
    1.10 +extern DECLSPEC void SDLCALL SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata);
    1.11  
    1.12  /**
    1.13     \brief Returns the D3D9 adapter index that matches the specified display index.