Reactos
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6#ifndef _INC_SETJMPEX
7#define _INC_SETJMPEX
8
9#ifndef _WIN32
10#error Only Win32 target is supported!
11#endif
12
13#if (defined(_X86_) && !defined(__x86_64))
14 __declspec(noreturn) __MINGW_NOTHROW void __cdecl _longjmpex(jmp_buf _Buf,int _Value);
15#define setjmp _setjmp
16#define longjmp _longjmpex
17#else
18#ifdef setjmp
19#undef setjmp
20#endif
21#define setjmp _setjmpex
22#endif
23
24#include <setjmp.h>
25#endif