aboutsummaryrefslogtreecommitdiffstats
path: root/include/setjmp.h
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-10-05 05:48:50 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-10-05 05:48:50 +0000
commit4b96f222598723a0cc2cc078ddd054bbde622a47 (patch)
tree99248232f36084763e8024aeac1c5d98873c4539 /include/setjmp.h
parente61d3b10d792517bf66f9d86b0e43a88ab32b017 (diff)
downloadsrc-4b96f222598723a0cc2cc078ddd054bbde622a47.tar.gz
src-4b96f222598723a0cc2cc078ddd054bbde622a47.zip
Fix namespace issues by using visibility conditionals from
<sys/cdefs.h>. Sort function prototypes.
Notes
Notes: svn path=/head/; revision=104506
Diffstat (limited to 'include/setjmp.h')
-rw-r--r--include/setjmp.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/setjmp.h b/include/setjmp.h
index 8aff92e3567d..95644113e710 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_ */