Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch_compiler_capabilities.h: use proper math define #1854

Merged
merged 2 commits into from
Feb 3, 2020
Merged

catch_compiler_capabilities.h: use proper math define #1854

merged 2 commits into from
Feb 3, 2020

Conversation

neheb
Copy link
Contributor

@neheb neheb commented Feb 1, 2020

C++11 math requires _GLIBCXX_USE_C99_MATH_TR1 to be true with gcc/clang.

Also fixes an issue with uClibc-ng where UCLIBC is defined in features.h but
that is not included here and is thus no-op.

Similar to how boost does it: https://github.com/boostorg/math/blob/5f8561bcfd4f1784e729acd333d3532e30adc477/include/boost/math/tools/roots.hpp#L863

@codecov
Copy link

codecov bot commented Feb 1, 2020

Codecov Report

Merging #1854 into master will decrease coverage by 0.56%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1854      +/-   ##
==========================================
- Coverage   86.27%   85.71%   -0.56%     
==========================================
  Files         131      128       -3     
  Lines        3888     3204     -684     
==========================================
- Hits         3354     2746     -608     
+ Misses        534      458      -76

C++11 math requires _GLIBCXX_USE_C99_MATH_TR1 to be true with gcc/clang.

Also fixes an issue with uClibc-ng where __UCLIBC__ is defined in features.h but
that is not included here and is thus no-op.
@neheb
Copy link
Contributor Author

neheb commented Feb 1, 2020

Actually this has the same problem. hmmm...

@horenmar
Copy link
Member

horenmar commented Feb 1, 2020

Either I can fix the missing decl warnings when I get around to it, or you will have to :-)

@horenmar horenmar added the BugFix label Feb 1, 2020
@horenmar horenmar merged commit b3b0721 into catchorg:master Feb 3, 2020
@neheb neheb deleted the patch-1 branch February 3, 2020 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants