提交 a85848a5 编写于 作者: R Romain Vimont

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>
上级 28abd98f
......@@ -50,7 +50,7 @@ static struct input_manager input_manager = {
};
#ifdef _WIN32
BOOL windows_ctrl_handler(DWORD ctrl_type) {
BOOL WINAPI windows_ctrl_handler(DWORD ctrl_type) {
if (ctrl_type == CTRL_C_EVENT) {
SDL_Event event;
event.type = SDL_QUIT;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册