diff options
author | mike <mike@FreeBSD.org> | 2002-10-05 05:48:50 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-10-05 05:48:50 +0000 |
commit | 747ba408ec03eaa78f011c520d58c7e52de2de00 (patch) | |
tree | 99248232f36084763e8024aeac1c5d98873c4539 /include | |
parent | 029ec48b98d04eaf5f1bae459fb9743e72089cd7 (diff) | |
download | FreeBSD-src-747ba408ec03eaa78f011c520d58c7e52de2de00.zip FreeBSD-src-747ba408ec03eaa78f011c520d58c7e52de2de00.tar.gz |
Fix namespace issues by using visibility conditionals from
<sys/cdefs.h>. Sort function prototypes.
Diffstat (limited to 'include')
-rw-r--r-- | include/setjmp.h | 26 |
1 files changed, 13 insertions, 13 deletions
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 <sys/cdefs.h> + /* The size of the jmp_buf is machine dependent: */ #include <machine/setjmp.h> -#include <sys/cdefs.h> - __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_ */ |