From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4873 invoked by alias); 5 Mar 2008 21:46:33 -0000 Received: (qmail 4742 invoked by uid 48); 5 Mar 2008 21:45:50 -0000 Date: Wed, 05 Mar 2008 21:46:00 -0000 Message-ID: <20080305214550.4741.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/35471] libgfortran fails with nonstandard In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00349.txt.bz2 ------- Comment #1 from fxcoudert at gcc dot gnu dot org 2008-03-05 21:45 ------- What kind of system do you have, to have a without complex defined in it? (sounds kind of useless) I suggest the following patch: Index: libgfortran.h =================================================================== --- libgfortran.h (revision 132578) +++ libgfortran.h (working copy) @@ -42,10 +42,12 @@ #if HAVE_COMPLEX_H # include -#else -#define complex __complex__ #endif +#if !defined(HAVE_COMPLEX_H) || !defined(complex) +# define complex __complex__ +#endif + #include "../gcc/fortran/libgfortran.h" #include "c99_protos.h" -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org Summary|gfortran build fails in |libgfortran fails with |libgfortran |nonstandard http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35471