aboutsummaryrefslogtreecommitdiffstats
path: root/include/assert.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-29 04:31:14 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-29 04:31:14 +0200
commit6fe45b4c7578cc9da7538dd9f57be6d8df730b3b (patch)
tree4399d20af6a514ac070615fb5b781eb85fcc46ab /include/assert.h
parentonly use __attributes__ if compiling with gcc (diff)
downloadslibc-6fe45b4c7578cc9da7538dd9f57be6d8df730b3b.tar.gz
slibc-6fe45b4c7578cc9da7538dd9f57be6d8df730b3b.tar.bz2
slibc-6fe45b4c7578cc9da7538dd9f57be6d8df730b3b.tar.xz
add __C11__, __C99__, __C90__, and __noreturn
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--include/assert.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/assert.h b/include/assert.h
index e5a963d..763b7b4 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -75,7 +75,6 @@
#else
# define assert_perror(errnum) \
((void)((errnum == 0) ? 0 : (__assert_fail(NULL, errnum, __FILE__, __LINE__, __func__), 0)))
-__USE_GNU
#endif
@@ -89,8 +88,8 @@ __USE_GNU
* @param line The line in the source code whence the assertion was made
* @param func The function in the source code whence the assertion was made
*/
-void __GCC_ONLY(__attribute__((noreturn, nonnull(3, 4, 5))))
-__assert_fail(const char* expression, int errnum, const char* file, int line, const char* func);
+void __assert_fail(const char* expression, int errnum, const char* file, int line, const char* func)
+ __noreturn __GCC_ONLY(__attribute__((nonnull(3, 4, 5))));