projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correct locking in stdio functions that tried to be lock-free
[musl]
/
include
/
setjmp.h
diff --git
a/include/setjmp.h
b/include/setjmp.h
index
8ec5c6f
..
abc7423
100644
(file)
--- a/
include/setjmp.h
+++ b/
include/setjmp.h
@@
-5,12
+5,7
@@
extern "C" {
#endif
extern "C" {
#endif
-#if __STDC_VERSION__ >= 201112L
-#elif defined(__GNUC__)
-#define _Noreturn __attribute__((__noreturn__))
-#else
-#define _Noreturn
-#endif
+#include <features.h>
#include <bits/setjmp.h>
#include <bits/setjmp.h>
@@
-24,14
+19,14
@@
typedef struct {
unsigned long __ss[128/sizeof(long)];
} sigjmp_buf[1];
int sigsetjmp (sigjmp_buf, int);
unsigned long __ss[128/sizeof(long)];
} sigjmp_buf[1];
int sigsetjmp (sigjmp_buf, int);
-void siglongjmp (sigjmp_buf, int);
+
_Noreturn
void siglongjmp (sigjmp_buf, int);
#endif
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
|| defined(_BSD_SOURCE)
int _setjmp (jmp_buf);
#endif
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
|| defined(_BSD_SOURCE)
int _setjmp (jmp_buf);
-void _longjmp (jmp_buf, int);
+
_Noreturn
void _longjmp (jmp_buf, int);
#endif
#endif