Skip to content

Commit ee96541

Browse files
Fixes #1511 lambda issue for w64devkit (mingw) (#1513)
* Fix for w64devkit and mingw
1 parent dc271c5 commit ee96541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/main/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int main(int argc, char ** argv) {
241241
sigint_action.sa_flags = 0;
242242
sigaction(SIGINT, &sigint_action, NULL);
243243
#elif defined (_WIN32)
244-
auto console_ctrl_handler = [](DWORD ctrl_type) -> BOOL {
244+
auto console_ctrl_handler = +[](DWORD ctrl_type) -> BOOL {
245245
return (ctrl_type == CTRL_C_EVENT) ? (sigint_handler(SIGINT), true) : false;
246246
};
247247
SetConsoleCtrlHandler(static_cast<PHANDLER_ROUTINE>(console_ctrl_handler), true);

0 commit comments

Comments
 (0)