summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/StackTrace.cpp
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-05-10 18:18:28 +0200
committerGitHub <noreply@github.com>2020-05-10 18:18:28 +0200
commite053f72db824a16c1cb59107315001473058e2bc (patch)
treec54dafbc0048939697cb6ec7a8034534738bdbed /src/OSSupport/StackTrace.cpp
parentCleanup some workarounds and warnings (#4735) (diff)
downloadcuberite-e053f72db824a16c1cb59107315001473058e2bc.tar
cuberite-e053f72db824a16c1cb59107315001473058e2bc.tar.gz
cuberite-e053f72db824a16c1cb59107315001473058e2bc.tar.bz2
cuberite-e053f72db824a16c1cb59107315001473058e2bc.tar.lz
cuberite-e053f72db824a16c1cb59107315001473058e2bc.tar.xz
cuberite-e053f72db824a16c1cb59107315001473058e2bc.tar.zst
cuberite-e053f72db824a16c1cb59107315001473058e2bc.zip
Diffstat (limited to '')
-rw-r--r--src/OSSupport/StackTrace.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OSSupport/StackTrace.cpp b/src/OSSupport/StackTrace.cpp
index b8f80f5f3..d252e1e83 100644
--- a/src/OSSupport/StackTrace.cpp
+++ b/src/OSSupport/StackTrace.cpp
@@ -7,7 +7,7 @@
#include "StackTrace.h"
#ifdef _WIN32
#include "WinStackWalker.h"
-#elif !defined(ANDROID) // The Android NDK has no execinfo header
+#else
#ifdef __GLIBC__
#include <execinfo.h>
#endif
@@ -30,7 +30,7 @@ void PrintStackTrace(void)
}
} sw;
sw.ShowCallstack();
- #elif !defined(ANDROID)
+ #else
#ifdef __GLIBC__
// Use the backtrace() function to get and output the stackTrace:
// Code adapted from https://stackoverflow.com/questions/77005/how-to-generate-a-stacktrace-when-my-gcc-c-app-crashes