From 7aa7b459152de9854d5eafdbdb1aed43fd1e1cd0 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Wed, 2 Sep 2009 14:58:50 +0000 Subject: re PR libfortran/41169 (libgfortran fails to build on Solaris 10+: '_Imaginary_I' undeclared) PR libfortran/41169 * inclhack.def (irix_complex): New fix. (solaris_complex): Likewise. * fixincl.x: Regenerate. * tests/base/complex.h [IRIX_COMPLEX_CHECK, SOLARIS_COMPLEX_CHECK]: New tests. From-SVN: r151331 --- fixincludes/tests/base/complex.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'fixincludes/tests') diff --git a/fixincludes/tests/base/complex.h b/fixincludes/tests/base/complex.h index d20310d..9a54e8c 100644 --- a/fixincludes/tests/base/complex.h +++ b/fixincludes/tests/base/complex.h @@ -19,3 +19,17 @@ #define _Complex_I (__extension__ 1.0iF) #endif /* HPUX_IMAGINARY_I_CHECK */ + + +#if defined( IRIX_COMPLEX_CHECK ) +#define _Complex_I (__extension__ 1.0iF) +#define I _Complex_I +#endif /* IRIX_COMPLEX_CHECK */ + + +#if defined( SOLARIS_COMPLEX_CHECK ) +#define _Complex_I (__extension__ 1.0iF) +#define complex _Complex +#undef I +#define I _Complex_I +#endif /* SOLARIS_COMPLEX_CHECK */ -- cgit v1.1