Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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 dron, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in r15770.

Frank,

please run autoheader and autoconf. Configure stuff needs update.

comment:2 by warmerdam, 15 years ago

configure regenerated in trunk (r15771).

comment:3 by dron, 15 years ago

Frank,

The cpl_config.h.in needs to be updated too. Could you run autoheader please?

comment:4 by warmerdam, 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 dron, 15 years ago

r15801 updates cpl_config.h.in, r15802 adds 'extern "C"' linkage missed in the previous commit to fix this bug.

Note: See TracTickets for help on using tickets.