libgfortran.h: Include complex.h before math.h

2012-04-04  Tristan Gingold  <gingold@adacore.com>

        * libgfortran.h: Include complex.h before math.h

From-SVN: r186131
This commit is contained in:
Tristan Gingold 2012-04-04 07:46:53 +00:00 committed by Tristan Gingold
parent 26c4ef3c09
commit 62755fd571
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2012-04-04 Tristan Gingold <gingold@adacore.com>
* libgfortran.h: Include complex.h before math.h
2012-04-02 Tristan Gingold <gingold@adacore.com>
* configure.ac: Use new version of GCC_CHECK_MATH_FUNC.

View File

@ -42,11 +42,19 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "config.h"
#include <stdio.h>
#include <math.h>
#include <stddef.h>
#include <float.h>
#include <stdarg.h>
#if HAVE_COMPLEX_H
/* Must appear before math.h on VMS systems. */
# include <complex.h>
#else
#define complex __complex__
#endif
#include <math.h>
/* If we're support quad-precision floating-point type, include the
header to our support library. */
#ifdef HAVE_FLOAT128
@ -66,12 +74,6 @@ extern long double __strtold (const char *, char **);
#define gfc_strtold strtold
#endif
#if HAVE_COMPLEX_H
# include <complex.h>
#else
#define complex __complex__
#endif
#include "../gcc/fortran/libgfortran.h"
#include "c99_protos.h"