projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
further use of _Noreturn, for non-plain-C functions
[musl]
/
include
/
stdlib.h
diff --git
a/include/stdlib.h
b/include/stdlib.h
index
14cc71b
..
86cf017
100644
(file)
--- a/
include/stdlib.h
+++ b/
include/stdlib.h
@@
-11,6
+11,13
@@
extern "C" {
#define __restrict
#endif
#define __restrict
#endif
+#if __STDC_VERSION__ >= 201112L
+#elif defined(__GNUC__)
+#define _Noreturn __attribute__((__noreturn__))
+#else
+#define _Noreturn
+#endif
+
#undef NULL
#ifdef __cplusplus
#define NULL 0
#undef NULL
#ifdef __cplusplus
#define NULL 0
@@
-46,12
+53,12
@@
void *realloc (void *, size_t);
void free (void *);
void *aligned_alloc(size_t alignment, size_t size);
void free (void *);
void *aligned_alloc(size_t alignment, size_t size);
-void abort (void);
+
_Noreturn
void abort (void);
int atexit (void (*) (void));
int atexit (void (*) (void));
-void exit (int);
-void _Exit (int);
+
_Noreturn
void exit (int);
+
_Noreturn
void _Exit (int);
int at_quick_exit (void (*) (void));
int at_quick_exit (void (*) (void));
-void quick_exit (int);
+
_Noreturn
void quick_exit (int);
char *getenv (const char *);
char *getenv (const char *);