Releasing debian version 3:6.03+dfsg-10.
[syslinux-debian.git] / com32 / include / setjmp.h
blobe70909559c1c3833f465558863221c1a9e71e5a5
1 /*
2 * setjmp.h
3 */
5 #ifndef _SETJMP_H
6 #define _SETJMP_H
8 #include <klibc/extern.h>
9 #include <klibc/compiler.h>
10 #include <stddef.h>
12 #if __SIZEOF_POINTER__ == 4
13 #include <klibc/i386/archsetjmp.h>
14 #elif __SIZEOF_POINTER__ == 8
15 #include <klibc/x86_64/archsetjmp.h>
16 #else
17 #error "unsupported architecture"
18 #endif
20 __extern int setjmp(jmp_buf);
21 __extern __noreturn longjmp(jmp_buf, int);
23 typedef jmp_buf sigjmp_buf;
25 #define sigsetjmp(__env, __save) setjmp(__env)
26 #define siglongjmp(__env, __val) longjmp(__env, __val)
28 #endif /* _SETJMP_H */