From 2bafb671cc9c71f87ef3adc0a8400684ccd74deb Mon Sep 17 00:00:00 2001 From: roland Date: Fri, 11 Feb 1994 19:11:43 +0000 Subject: [PATCH] entered into RCS --- assert/assert.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assert/assert.h b/assert/assert.h index 9ae8176913..77c426508a 100644 --- a/assert/assert.h +++ b/assert/assert.h @@ -57,8 +57,10 @@ __END_DECLS __FILE__, __LINE__, __ASSERT_FUNCTION))) /* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__' - which contains the name of the function currently being defined. */ -#if !defined (__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 4 + which contains the name of the function currently being defined. + This is broken in G++ before version 2.6. */ +#if (!defined (__GNUC__) || __GNUC__ < 2 || \ + __GNUC_MINOR__ < (defined (__cplusplus) ? 6 : 4)) #define __ASSERT_FUNCTION ((__const char *) 0) #else #define __ASSERT_FUNCTION __PRETTY_FUNCTION__ -- 2.11.0