Re: [Patch, Fortran]: Fix libgfortran.h error for VMS

2012-04-04 Thread Tristan Gingold
On Apr 3, 2012, at 5:53 PM, Tobias Burnus wrote: On 04/03/2012 02:42 PM, Tristan Gingold wrote: The simplest path is simply to reverse the include order in libgfortran.h. I know that this is somewhat VMS specific, and I welcome better ideas. Well, changing the order is not that bad

[Patch, Fortran]: Fix libgfortran.h error for VMS

2012-04-03 Thread Tristan Gingold
Hi, unfortunately VMS doesn't like to include complex.h after math.h, while the reverse is allowed. The reason is that math.h (unless ANSI_C_SOURCE is defined but that hides many math functions) declares cabs/cabsf/cabsl for a structure representing a complex number, which is not compatible

Re: [Patch, Fortran]: Fix libgfortran.h error for VMS

2012-04-03 Thread Tobias Burnus
On 04/03/2012 02:42 PM, Tristan Gingold wrote: The simplest path is simply to reverse the include order in libgfortran.h. I know that this is somewhat VMS specific, and I welcome better ideas. Well, changing the order is not that bad than one has to try hard to find a better solution.