aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDannyDaemonic <DannyDaemonic@gmail.com>2023-05-18 10:30:40 -0700
committerGitHub <noreply@github.com>2023-05-18 19:30:40 +0200
commitee9654138ab0ae5f138f4abddf56ca234ea3c352 (patch)
tree8712f52385aa676a91737168174fac3b40419556 /examples
parentdc271c52ed65e7c8dfcbaaf84dabb1f788e4f3d0 (diff)
Fixes #1511 lambda issue for w64devkit (mingw) (#1513)
* Fix for w64devkit and mingw
Diffstat (limited to 'examples')
-rw-r--r--examples/main/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/main/main.cpp b/examples/main/main.cpp
index fe1c847..18673ed 100644
--- a/examples/main/main.cpp
+++ b/examples/main/main.cpp
@@ -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);