Fix Windows Ctrl Handler declaration
The handler function signature must include the calling convention declaration. Ref: <https://stackoverflow.com/questions/61717439/why-calling-setconsolectrlhandler-triggers-a-warning>
This commit is contained in:
parent
28abd98f7f
commit
a85848a541
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ static struct input_manager input_manager = {
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
BOOL windows_ctrl_handler(DWORD ctrl_type) {
|
BOOL WINAPI windows_ctrl_handler(DWORD ctrl_type) {
|
||||||
if (ctrl_type == CTRL_C_EVENT) {
|
if (ctrl_type == CTRL_C_EVENT) {
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
event.type = SDL_QUIT;
|
event.type = SDL_QUIT;
|
||||||
|
|
Loading…
Reference in a new issue