diff options
| author | Rosen Penev | 2020-01-31 21:54:16 -0800 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-02-16 15:27:04 +0100 |
| commit | 3e01d4b239dd14c97f53988c15362ae0c32406a2 (patch) | |
| tree | ba67150a33322ad338fd74087af4346b8614c725 /src/catch2 | |
| parent | 06c32862b3d7d20544ba876e590e799667b3afa8 (diff) | |
| download | catch3-3e01d4b239dd14c97f53988c15362ae0c32406a2.tar.gz | |
catch_compiler_capabilities.h: use proper math define
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.
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/catch_compiler_capabilities.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/catch_compiler_capabilities.h b/src/catch2/catch_compiler_capabilities.h index e9a73259..b26e815f 100644 --- a/src/catch2/catch_compiler_capabilities.h +++ b/src/catch2/catch_compiler_capabilities.h @@ -203,7 +203,7 @@ #define CATCH_CONFIG_COLOUR_NONE #endif -#if defined(__UCLIBC__) +#if !defined(_GLIBCXX_USE_C99_MATH_TR1) #define CATCH_INTERNAL_CONFIG_GLOBAL_NEXTAFTER #endif |