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:
+3
-10
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user