Commit 09c2d63a by Tobias Burnus Committed by Tobias Burnus

re PR fortran/46772 (libquadmath: Build failure - strtod: static declaration of…

re PR fortran/46772 (libquadmath: Build failure - strtod: static declaration of 'strtod'  follows non-static declaration)

2010-12-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46772
        * gdtoa/gdtoa.h: Include stdlib.h instead of declare strtod.
        * gdtoa/gdtoaimp.h: Don't declare strtod.

From-SVN: r167608
parent feb6efc1
2010-12-08 Tobias Burnus <burnus@net-b.de> 2010-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/46772
* gdtoa/gdtoa.h: Include stdlib.h instead of declare strtod.
* gdtoa/gdtoaimp.h: Don't declare strtod.
2010-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/46520 PR fortran/46520
* configure.ac: Use GCC_TRY_COMPILE_OR_LINK instead of * configure.ac: Use GCC_TRY_COMPILE_OR_LINK instead of
AC_TRY_LINK and cache libquad_have_float128. AC_TRY_LINK and cache libquad_have_float128.
......
...@@ -34,6 +34,7 @@ THIS SOFTWARE. ...@@ -34,6 +34,7 @@ THIS SOFTWARE.
#include "arith.h" #include "arith.h"
#include <stddef.h> /* for size_t */ #include <stddef.h> /* for size_t */
#include <stdlib.h> /* for strtod */
#ifndef Long #ifndef Long
#define Long long #define Long long
...@@ -108,8 +109,6 @@ extern char* dtoa ANSI((double d, int mode, int ndigits, int *decpt, ...@@ -108,8 +109,6 @@ extern char* dtoa ANSI((double d, int mode, int ndigits, int *decpt,
extern char* gdtoa ANSI((FPI *fpi, int be, ULong *bits, int *kindp, extern char* gdtoa ANSI((FPI *fpi, int be, ULong *bits, int *kindp,
int mode, int ndigits, int *decpt, char **rve)); int mode, int ndigits, int *decpt, char **rve));
extern void freedtoa ANSI((char*)); extern void freedtoa ANSI((char*));
extern float strtof ANSI((CONST char *, char **));
extern double strtod ANSI((CONST char *, char **));
extern int strtodg ANSI((CONST char*, char**, FPI*, Long*, ULong*)); extern int strtodg ANSI((CONST char*, char**, FPI*, Long*, ULong*));
extern char* g_ddfmt ANSI((char*, double*, int, size_t)); extern char* g_ddfmt ANSI((char*, double*, int, size_t));
......
...@@ -561,7 +561,6 @@ extern void memcpy_D2A ANSI((void*, const void*, size_t)); ...@@ -561,7 +561,6 @@ extern void memcpy_D2A ANSI((void*, const void*, size_t));
extern Bigint *set_ones ANSI((Bigint*, int)); extern Bigint *set_ones ANSI((Bigint*, int));
extern char *strcp ANSI((char*, const char*)); extern char *strcp ANSI((char*, const char*));
extern int strtoIg ANSI((CONST char*, char**, FPI*, Long*, Bigint**, int*)); extern int strtoIg ANSI((CONST char*, char**, FPI*, Long*, Bigint**, int*));
extern double strtod ANSI((const char *s00, char **se));
extern Bigint *sum ANSI((Bigint*, Bigint*)); extern Bigint *sum ANSI((Bigint*, Bigint*));
extern int trailz ANSI((Bigint*)); extern int trailz ANSI((Bigint*));
extern double ulp ANSI((U*)); extern double ulp ANSI((U*));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment