libstdc++: Add separate autoconf macro for std::float_t and std::double_t [PR109818]
This should make it possible to use openlibm with djgpp (and other targets with missing C99 <math.h> functions). The <math.h> from openlibm provides all the functions, but not the float_t and double_t typedefs. By separating the autoconf checks for the functionsand the typedefs, we don't disable support for all the functions just because those typedefs are not present. libstdc++-v3/ChangeLog: PR libstdc++/109818 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add separate check for float_t and double_t and define HAVE_C99_FLT_EVAL_TYPES. * config.h.in: Regenerate. * configure: Regenerate. * include/c_global/cmath (float_t, double_t): Guard using new _GLIBCXX_HAVE_C99_FLT_EVAL_TYPES macro.
Showing
- libstdc++-v3/acinclude.m4 18 additions, 3 deletionslibstdc++-v3/acinclude.m4
- libstdc++-v3/config.h.in 4 additions, 0 deletionslibstdc++-v3/config.h.in
- libstdc++-v3/configure 38 additions, 3 deletionslibstdc++-v3/configure
- libstdc++-v3/include/c_global/cmath 2 additions, 0 deletionslibstdc++-v3/include/c_global/cmath
Loading
Please register or sign in to comment