That work-around for R5 build targets should no longer be necessary.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14902 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-11-13 17:54:18 +00:00
parent 0c0bf02aac
commit d2f25ec7a5
+4 -11
View File
@@ -1,6 +1,7 @@
/* /*
** Distributed under the terms of the Haiku License. * Copyright 2004-2005, Haiku, Inc.
*/ * Distributed under the terms of the MIT License.
*/
#ifndef _SETJMP_H_ #ifndef _SETJMP_H_
#define _SETJMP_H_ #define _SETJMP_H_
@@ -29,14 +30,6 @@ extern void _longjmp(jmp_buf jumpBuffer, int value);
extern void longjmp(jmp_buf jumpBuffer, int value); extern void longjmp(jmp_buf jumpBuffer, int value);
extern void siglongjmp(sigjmp_buf jumpBuffer, int value); extern void siglongjmp(sigjmp_buf jumpBuffer, int value);
// ToDo: this is a temporary workaround for a bug in BeOS
// (it exports setjmp/sigsetjmp functions that do not work)
#ifdef COMPILE_FOR_R5
# define setjmp(buffer) __sigsetjmp((buffer), 0)
# define sigsetjmp(buffer, mask) __sigsetjmp((buffer), (mask))
extern int __sigsetjmp(jmp_buf buffer, int saveMask);
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif