summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-01-31 21:54:16 -0800
committerRosen Penev <rosenp@gmail.com>2020-01-31 22:20:59 -0800
commitf96e89e016802fb219c9158ac74a21f3aae6abc9 (patch)
tree9fa6569b90b4d7848be9807310ad30a719f98e39
parent481f54b357f033df0edc8bd457c175a2f2236d08 (diff)
downloadcatch2-f96e89e016802fb219c9158ac74a21f3aae6abc9.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.
-rw-r--r--include/internal/catch_compiler_capabilities.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/catch_compiler_capabilities.h b/include/internal/catch_compiler_capabilities.h
index 0cc7ed40..9eebd8de 100644
--- a/include/internal/catch_compiler_capabilities.h
+++ b/include/internal/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