[mini] Do not try to set the usermode exception policy unless we're targeting Windows.
authorJoão Matos <joao@tritao.eu>
Wed, 6 May 2015 14:01:40 +0000 (15:01 +0100)
committerJoão Matos <joao@tritao.eu>
Wed, 6 May 2015 14:01:40 +0000 (15:01 +0100)
Fixes Windows cross-compilation.

mono/mini/exceptions-x86.c

index 03e7aec44a0bf721b0fd95799e49b524ff110a40..2e862f43f18921ead6b4073c8506c73c04e71689 100644 (file)
@@ -718,7 +718,7 @@ mono_arch_exceptions_init (void)
  * for SEHs to behave. This requires hotfix http://support.microsoft.com/kb/976038
  * or (eventually) Windows 7 SP1.
  */
-#ifdef HOST_WIN32
+#ifdef TARGET_WIN32
        DWORD flags;
        FARPROC getter;
        FARPROC setter;