w64: Fix definition of setjmp
authorStefan Weil <sw@weilnetz.de>
Thu, 12 Apr 2012 19:13:28 +0000 (21:13 +0200)
committerStefan Weil <sw@weilnetz.de>
Sun, 15 Apr 2012 19:25:16 +0000 (21:25 +0200)
commit5cf6dd51abb252d25cb77d3b7a95a744bed1a69c
tree12bd37768cc2938e9dcd1f00eb33f7c9f97b1984
parentacf126ba58425f11e74fbb9c1095224cb142fffa
w64: Fix definition of setjmp

The default definition of setjmp which is implemented in MinGW-w64
cannot be used with programs like QEMU which call longjmp from
code without structured exception handling (SEH).

This code therefore disables stack unwinding.

We could also implement SEH for QEMU's generated JIT code, but
that is much more difficult. Stack unwinding would also cost
execution time.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
qemu-os-win32.h