summaryrefslogtreecommitdiff
path: root/assert
diff options
context:
space:
mode:
Diffstat (limited to 'assert')
-rw-r--r--assert/assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/assert/assert.h b/assert/assert.h
index 386e80c3b1..326183a272 100644
--- a/assert/assert.h
+++ b/assert/assert.h
@@ -90,7 +90,7 @@ __END_DECLS
This is broken in G++ before version 2.6.
C9x has a similar variable called __func__, but prefer the GCC one since
it demangles C++ function names. */
-# if __GNUC_PREREQ (2, (defined __cplusplus ? 6 : 4))
+# if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4)
# define __ASSERT_FUNCTION __PRETTY_FUNCTION__
# else
# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L