projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
align EPOLL_* flags with fcntl O_* flag definitions, which vary by arch
[musl]
/
include
/
assert.h
diff --git
a/include/assert.h
b/include/assert.h
index
30a43d6
..
c64d3e5
100644
(file)
--- a/
include/assert.h
+++ b/
include/assert.h
@@
-1,16
+1,11
@@
-#
undef assert
+#
include <features.h>
-#if __STDC_VERSION__ >= 201112L
-#elif defined(__GNUC__)
-#define _Noreturn __attribute__((__noreturn__))
-#else
-#define _Noreturn
-#endif
+#undef assert
#ifdef NDEBUG
#define assert(x) (void)0
#else
#ifdef NDEBUG
#define assert(x) (void)0
#else
-#define assert(x) ((
x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0
))
+#define assert(x) ((
void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0)
))
#endif
#ifdef __cplusplus
#endif
#ifdef __cplusplus