aboutsummaryrefslogtreecommitdiffstats
path: root/include/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/assert.h')
-rw-r--r--include/assert.h2
1 files changed, 2 insertions, 0 deletions
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