#2693 closed defect (fixed)
strtof() function exist in GCC 2.95, but not declared
Reported by: | dron | Owned by: | dron |
---|---|---|---|
Priority: | normal | Milestone: | 1.6.0 |
Component: | default | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: | warmerdam |
Description
We are using strtof() function in port/cpl_strtod.cpp wrapper. It is properly searched by configure script and properly ifdef'ed in the code. But it doesn't work with GCC 2.95, because its declaration is only available when the 'c99' option is activated. This patch adds a simple workaround.
Change History (5)
comment:1 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 15 years ago
Frank,
The cpl_config.h.in needs to be updated too. Could you run autoheader please?
comment:4 by , 15 years ago
Andrey,
We deliberately do not run autoheader anymore for the reasons noted in autogen.sh. Please manually add your requirements to cpl_config.h.in.
comment:5 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
Fixed in r15770.
Frank,
please run autoheader and autoconf. Configure stuff needs update.