TetragrammatonHermit / naclports

Automatically exported from code.google.com/p/naclports
1 stars 0 forks source link

boost/math/tools/config.hpp fails to find FE_ALL_EXCEPT, fegetexceptflag, feclearexcept in fenv.h #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build anything that include the boost/math/tools/config.hpp with nacl-c++

What is the expected output? What do you see instead?
The pp symbol __linux__ is defined, so the header looks for the C99 symbols 
FE_ALL_EXCEPT and the functions fegetexceptflag and feclearexcept. These are 
not found in the nacl-provided fenv.h. 

They symbols are provided by glibc on linux and apple system headers on mac os.

What version of the product are you using? On what operating system?
MacOS 10.6  or Fedora 13 and boost 1.43 with the NaclPorts patches.

Please provide any additional information below.
Simply replacing the #if surrounding the lines with #if 0 makes our code 
compile and work (as the #else header provides an empty definition of the 
defined class).

Original issue reported on code.google.com by drus...@gmail.com on 10 Aug 2010 at 4:43