summaryrefslogtreecommitdiffstats
path: root/platform/windows/godot_windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/windows/godot_windows.cpp')
-rw-r--r--platform/windows/godot_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/godot_windows.cpp b/platform/windows/godot_windows.cpp
index 5f41b4e568..486c3120fc 100644
--- a/platform/windows/godot_windows.cpp
+++ b/platform/windows/godot_windows.cpp
@@ -215,7 +215,7 @@ int main(int argc, char **argv) {
// _argc and _argv are ignored
// we are going to use the WideChar version of them instead
-#ifdef CRASH_HANDLER_EXCEPTION
+#if defined(CRASH_HANDLER_EXCEPTION) && defined(_MSC_VER)
__try {
return _main();
} __except (CrashHandlerException(GetExceptionInformation())) {