From 747ba408ec03eaa78f011c520d58c7e52de2de00 Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 5 Oct 2002 05:48:50 +0000 Subject: Fix namespace issues by using visibility conditionals from . Sort function prototypes. --- include/setjmp.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'include') diff --git a/include/setjmp.h b/include/setjmp.h index 8aff92e..9564411 100644 --- a/include/setjmp.h +++ b/include/setjmp.h @@ -42,25 +42,25 @@ #ifndef _SETJMP_H_ #define _SETJMP_H_ +#include + /* The size of the jmp_buf is machine dependent: */ #include -#include - __BEGIN_DECLS -int setjmp(jmp_buf); -void longjmp(jmp_buf, int) __dead2; - -#ifndef _ANSI_SOURCE -int sigsetjmp(sigjmp_buf, int); -void siglongjmp(sigjmp_buf, int) __dead2; -#endif /* not ANSI */ - -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -int _setjmp(jmp_buf); +#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE void _longjmp(jmp_buf, int) __dead2; +int _setjmp(jmp_buf); +#endif +void longjmp(jmp_buf, int) __dead2; +#if __BSD_VISIBLE void longjmperror(void); -#endif /* neither ANSI nor POSIX */ +#endif +int setjmp(jmp_buf); +#if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE +void siglongjmp(sigjmp_buf, int) __dead2; +int sigsetjmp(sigjmp_buf, int); +#endif __END_DECLS #endif /* !_SETJMP_H_ */ -- cgit v1.1