diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-01-09 17:15:58 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-01-09 17:15:58 +0000 |
commit | a7765de8ef7653d7e899b24ed7bb3819e5f90f29 (patch) | |
tree | bcebea7a38679521f55bec11d91f3bd3aee07631 /libstdc++-v3/config.h.in | |
parent | 4b85f4e61cc68995ac3c53e122afc9befc375755 (diff) | |
download | gcc-a7765de8ef7653d7e899b24ed7bb3819e5f90f29.zip gcc-a7765de8ef7653d7e899b24ed7bb3819e5f90f29.tar.gz gcc-a7765de8ef7653d7e899b24ed7bb3819e5f90f29.tar.bz2 |
PR79017 workaround incomplete C99 math on darwin
PR libstdc++/79017
* acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
functions separately on darwin and if they're missing define
_GLIBCXX_NO_C99_ROUNDING_FUNCS.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
(llrintf, llrintl, llround, llroundf, llroundl): Do not define.
From-SVN: r244231
Diffstat (limited to 'libstdc++-v3/config.h.in')
-rw-r--r-- | libstdc++-v3/config.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in index cdd313b..51b770d 100644 --- a/libstdc++-v3/config.h.in +++ b/libstdc++-v3/config.h.in @@ -819,6 +819,9 @@ /* Define to the letter to which size_t is mangled. */ #undef _GLIBCXX_MANGLE_SIZE_T +/* Define if C99 llrint and llround functions are missing from <math.h>. */ +#undef _GLIBCXX_NO_C99_ROUNDING_FUNCS + /* Define if ptrdiff_t is int. */ #undef _GLIBCXX_PTRDIFF_T_IS_INT |