summaryrefslogtreecommitdiff
path: root/src/catch.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/catch.hpp')
-rw-r--r--src/catch.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/catch.hpp b/src/catch.hpp
index a5563d7a7..07ffcc7b1 100644
--- a/src/catch.hpp
+++ b/src/catch.hpp
@@ -6073,8 +6073,7 @@ namespace Catch {
resultBuilder.setResultType( ResultWas::FatalErrorCondition );
resultBuilder << message;
// stack
-#ifndef ANDROID
-#if defined __linux__ || defined __linux
+#ifdef HAVE_EXECINFO
{
void *array[15];
const int size = static_cast<int>(backtrace(array, 15));
@@ -6083,8 +6082,7 @@ namespace Catch {
resultBuilder << strings[i];
free(strings);
}
-#endif // defined __linux__ || defined __linux
-#endif // ANDROID
+#endif // HAVE_EXECINFO
// stack
resultBuilder.captureExpression();