Skip to content

Commit

Permalink
Fixes #1511 lambda issue for w64devkit (mingw) (#1513)
Browse files Browse the repository at this point in the history
* Fix for w64devkit and mingw
  • Loading branch information
DannyDaemonic authored May 18, 2023
1 parent dc271c5 commit ee96541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ int main(int argc, char ** argv) {
sigint_action.sa_flags = 0;
sigaction(SIGINT, &sigint_action, NULL);
#elif defined (_WIN32)
auto console_ctrl_handler = [](DWORD ctrl_type) -> BOOL {
auto console_ctrl_handler = +[](DWORD ctrl_type) -> BOOL {
return (ctrl_type == CTRL_C_EVENT) ? (sigint_handler(SIGINT), true) : false;
};
SetConsoleCtrlHandler(static_cast<PHANDLER_ROUTINE>(console_ctrl_handler), true);
Expand Down

0 comments on commit ee96541

Please sign in to comment.