diff options
Diffstat (limited to 'newlib/libc/include/assert.h')
-rw-r--r-- | newlib/libc/include/assert.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/newlib/libc/include/assert.h b/newlib/libc/include/assert.h index e542b214f..ed14928ba 100644 --- a/newlib/libc/include/assert.h +++ b/newlib/libc/include/assert.h @@ -21,14 +21,10 @@ extern "C" { # if defined __cplusplus && defined __GNUC__ # define __ASSERT_FUNC __PRETTY_FUNCTION__ - /* C99 requires the use of __func__. */ -# elif __STDC_VERSION__ >= 199901L + /* C99 requires the use of __func__, gcc also supports it. */ +# elif defined __GNUC__ || __STDC_VERSION__ >= 199901L # define __ASSERT_FUNC __func__ - /* Older versions of gcc don't have __func__ but can use __FUNCTION__. */ -# elif __GNUC__ >= 2 -# define __ASSERT_FUNC __FUNCTION__ - /* failed to detect __func__ support. */ # else # define __ASSERT_FUNC ((char *) 0) |