mirror of
https://github.com/encounter/SDL.git
synced 2025-12-12 22:56:09 +00:00
Use SDLCALL for callbacks in public APIs
This commit is contained in:
committed by
Sam Lantinga
parent
ffab9f46b5
commit
0cca71a846
@@ -683,7 +683,7 @@ EnumDevObjectsCallback(LPCDIDEVICEOBJECTINSTANCE pDeviceObject, LPVOID pContext)
|
||||
/* Sort using the data offset into the DInput struct.
|
||||
* This gives a reasonable ordering for the inputs.
|
||||
*/
|
||||
static int
|
||||
static int SDLCALL
|
||||
SortDevFunc(const void *a, const void *b)
|
||||
{
|
||||
const input_t *inputA = (const input_t*)a;
|
||||
|
||||
@@ -1069,7 +1069,7 @@ RAWINPUT_JoystickGetDeviceInstanceID(int device_index)
|
||||
return RAWINPUT_GetDeviceByIndex(device_index)->joystick_id;
|
||||
}
|
||||
|
||||
static int
|
||||
static int SDLCALL
|
||||
RAWINPUT_SortValueCaps(const void *A, const void *B)
|
||||
{
|
||||
HIDP_VALUE_CAPS *capsA = (HIDP_VALUE_CAPS *)A;
|
||||
|
||||
@@ -330,7 +330,7 @@ SDL_WaitForDeviceNotification(SDL_DeviceNotificationData *data, SDL_mutex *mutex
|
||||
static SDL_DeviceNotificationData s_notification_data;
|
||||
|
||||
/* Function/thread to scan the system for joysticks. */
|
||||
static int
|
||||
static int SDLCALL
|
||||
SDL_JoystickThread(void *_data)
|
||||
{
|
||||
#if SDL_JOYSTICK_XINPUT
|
||||
|
||||
Reference in New Issue
Block a user