fix FLT_ROUNDS regression in C++ applications
authorRich Felker <dalias@aerifal.cx>
Mon, 23 Mar 2015 15:26:51 +0000 (11:26 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 23 Mar 2015 15:26:51 +0000 (11:26 -0400)
commit11d1e2e2ded07673411ba872c1e3d0096dc79439
treeecab6c214eac3964a5c6e53b1fcf95b74fda0898
parentfc13acc3dcb5b1f215c007f583a63551f6a71363
fix FLT_ROUNDS regression in C++ applications

commit 559de8f5f06da9022cbba70e22e14a710eb74513 redefined FLT_ROUNDS
to use an external function that can report the actual current
rounding mode, rather than always reporting round-to-nearest. however,
float.h did not include 'extern "C"' wrapping for C++, so C++ programs
using FLT_ROUNDS ended up with an unresolved reference to a
name-mangled C++ function __flt_rounds.
include/float.h