Fix warning: no function prototype

This commit is contained in:
Petar Popovic
2024-09-23 18:19:08 +02:00
committed by Sam Lantinga
parent 4a3faf20ac
commit 004ac40226
3 changed files with 5 additions and 5 deletions

View File

@@ -1246,12 +1246,12 @@ static bool HIDAPI_IsEquivalentToDevice(Uint16 vendor_id, Uint16 product_id, SDL
return false; return false;
} }
static bool HIDAPI_StartUpdatingDevices() static bool HIDAPI_StartUpdatingDevices(void)
{ {
return SDL_CompareAndSwapAtomicInt(&SDL_HIDAPI_updating_devices, false, true); return SDL_CompareAndSwapAtomicInt(&SDL_HIDAPI_updating_devices, false, true);
} }
static void HIDAPI_FinishUpdatingDevices() static void HIDAPI_FinishUpdatingDevices(void)
{ {
SDL_SetAtomicInt(&SDL_HIDAPI_updating_devices, false); SDL_SetAtomicInt(&SDL_HIDAPI_updating_devices, false);
} }

View File

@@ -22,11 +22,11 @@
#include "../../core/windows/SDL_windows.h" #include "../../core/windows/SDL_windows.h"
// Return true if the RawInput driver is enabled // Return true if the RawInput driver is enabled
extern bool RAWINPUT_IsEnabled(); extern bool RAWINPUT_IsEnabled(void);
// Registers for input events // Registers for input events
extern int RAWINPUT_RegisterNotifications(HWND hWnd); extern int RAWINPUT_RegisterNotifications(HWND hWnd);
extern int RAWINPUT_UnregisterNotifications(); extern int RAWINPUT_UnregisterNotifications(void);
// Returns 0 if message was handled // Returns 0 if message was handled
extern LRESULT CALLBACK RAWINPUT_WindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); extern LRESULT CALLBACK RAWINPUT_WindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);

View File

@@ -29,6 +29,6 @@ extern HCURSOR SDL_cursor;
extern void WIN_InitMouse(SDL_VideoDevice *_this); extern void WIN_InitMouse(SDL_VideoDevice *_this);
extern void WIN_QuitMouse(SDL_VideoDevice *_this); extern void WIN_QuitMouse(SDL_VideoDevice *_this);
extern void WIN_SetCursorPos(int x, int y); extern void WIN_SetCursorPos(int x, int y);
extern void WIN_UpdateMouseSystemScale(); extern void WIN_UpdateMouseSystemScale(void);
#endif // SDL_windowsmouse_h_ #endif // SDL_windowsmouse_h_