X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fmini-windows.c;h=621a7a5fc31970e22d3e75e4993623ae10dddece;hb=56ad8f4e5dfb8198e4671f631a3103b1e8b83dd3;hp=9488ac895d991570879327ed2b2db009742fc89b;hpb=e4aa060bea5bc82362b9ea2c66de4c8da782a061;p=mono.git diff --git a/mono/mini/mini-windows.c b/mono/mini/mini-windows.c index 9488ac895d9..621a7a5fc31 100644 --- a/mono/mini/mini-windows.c +++ b/mono/mini/mini-windows.c @@ -8,6 +8,7 @@ * Copyright 2003-2008 Ximian, Inc. * * See LICENSE for licensing information. + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include #include @@ -29,7 +30,7 @@ #include #include #include -#include +#include #include #include #include @@ -38,7 +39,7 @@ #include #include #include -#include +#include #include #include @@ -50,16 +51,22 @@ #include "jit-icalls.h" +#ifdef _WIN32 +#include +#endif + void mono_runtime_install_handlers (void) { #ifndef MONO_CROSS_COMPILE - win32_seh_init(); - win32_seh_set_handler(SIGFPE, mono_sigfpe_signal_handler); - win32_seh_set_handler(SIGILL, mono_sigill_signal_handler); - win32_seh_set_handler(SIGSEGV, mono_sigsegv_signal_handler); - if (mini_get_debug_options ()->handle_sigint) - win32_seh_set_handler(SIGINT, mono_sigint_signal_handler); + if (!mono_aot_only) { + win32_seh_init(); + win32_seh_set_handler(SIGFPE, mono_sigfpe_signal_handler); + win32_seh_set_handler(SIGILL, mono_sigill_signal_handler); + win32_seh_set_handler(SIGSEGV, mono_sigsegv_signal_handler); + if (mini_get_debug_options ()->handle_sigint) + win32_seh_set_handler(SIGINT, mono_sigint_signal_handler); + } #endif } @@ -67,7 +74,9 @@ void mono_runtime_cleanup_handlers (void) { #ifndef MONO_CROSS_COMPILE - win32_seh_cleanup(); + if (!mono_aot_only) { + win32_seh_cleanup(); + } #endif }