diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-05-31 12:22:06 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-05-31 21:10:49 +0100 |
commit | 49f59826c66bcaa3531429381b4aed944c332e5b (patch) | |
tree | 2c37a171a0d7c3baba25939a0f350c1c4bd6c7cf /libstdc++-v3/config.h.in | |
parent | 1f378f6dd33ad5067a437d1c456979f8662020d6 (diff) | |
download | gcc-49f59826c66bcaa3531429381b4aed944c332e5b.zip gcc-49f59826c66bcaa3531429381b4aed944c332e5b.tar.gz gcc-49f59826c66bcaa3531429381b4aed944c332e5b.tar.bz2 |
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.
Diffstat (limited to 'libstdc++-v3/config.h.in')
-rw-r--r-- | libstdc++-v3/config.h.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in index 4fbf5ef..5a95853 100644 --- a/libstdc++-v3/config.h.in +++ b/libstdc++-v3/config.h.in @@ -42,6 +42,10 @@ /* Define to 1 if you have the `at_quick_exit' function. */ #undef HAVE_AT_QUICK_EXIT +/* Define if C99 float_t and double_t in <math.h> should be imported in + <cmath> in namespace std for C++11. */ +#undef HAVE_C99_FLT_EVAL_TYPES + /* Define to 1 if the target assembler supports thread-local storage. */ #undef HAVE_CC_TLS |