projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix invalid implicit pointer conversion in gnulib-compat functions
[musl]
/
include
/
setjmp.h
diff --git
a/include/setjmp.h
b/include/setjmp.h
index
7dc7276
..
8ec5c6f
100644
(file)
--- a/
include/setjmp.h
+++ b/
include/setjmp.h
@@
-5,6
+5,13
@@
extern "C" {
#endif
extern "C" {
#endif
+#if __STDC_VERSION__ >= 201112L
+#elif defined(__GNUC__)
+#define _Noreturn __attribute__((__noreturn__))
+#else
+#define _Noreturn
+#endif
+
#include <bits/setjmp.h>
#include <bits/setjmp.h>
@@
-29,7
+36,7
@@
void _longjmp (jmp_buf, int);
int setjmp (jmp_buf);
int setjmp (jmp_buf);
-void longjmp (jmp_buf, int);
+
_Noreturn
void longjmp (jmp_buf, int);
#define setjmp setjmp
#define longjmp longjmp
#define setjmp setjmp
#define longjmp longjmp