From 841f17b59aac1c6d273f7e053243e6aaf29dc3c4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 29 Aug 2015 23:01:31 +0200 Subject: add _PORTABLE_SOURCE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/assert.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/assert.h') diff --git a/include/assert.h b/include/assert.h index 763b7b4..12d4678 100644 --- a/include/assert.h +++ b/include/assert.h @@ -58,6 +58,7 @@ #define static_assert _Static_assert +#ifndef _PORTABLE_SOURCE /** * Unless `NDEBUG` is defined, print an error message * and abort the process, if `errnum` is non-zero. @@ -90,6 +91,7 @@ */ void __assert_fail(const char* expression, int errnum, const char* file, int line, const char* func) __noreturn __GCC_ONLY(__attribute__((nonnull(3, 4, 5)))); +#endif -- cgit v1.2.3-70-g09d2