Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r--newlib/libc/stdlib/assert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/assert.c b/newlib/libc/stdlib/assert.c
index 2da329815..135bf1519 100644
--- a/newlib/libc/stdlib/assert.c
+++ b/newlib/libc/stdlib/assert.c
@@ -47,6 +47,7 @@ Supporting OS subroutines required (only if enabled): <<close>>, <<fstat>>,
#include <stdlib.h>
#include <stdio.h>
+#ifndef HAVE_ASSERT_FUNC
/* func can be NULL, in which case no function information is given. */
void
_DEFUN (__assert_func, (file, line, func, failedexpr),
@@ -62,6 +63,7 @@ _DEFUN (__assert_func, (file, line, func, failedexpr),
abort();
/* NOTREACHED */
}
+#endif /* HAVE_ASSERT_FUNC */
void
_DEFUN (__assert, (file, line, failedexpr),