Skip to content

Commit

Permalink
fix REALM_HAVE_BACKTRACE fallback warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fealebenpae committed Oct 18, 2023
1 parent cd85234 commit c09012e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/realm/util/backtrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include <cstdlib>
#include <cstring>

#ifndef REALM_HAVE_BACKTRACE
#if !defined(REALM_HAVE_BACKTRACE) && (REALM_PLATFORM_APPLE || (defined(__linux__) && defined(__GNUC__)))
// we detect the backtrace facility in CMake, but if building outside it we assume
// it's available on Apple or Linux/glibc
#define REALM_HAVE_BACKTRACE REALM_PLATFORM_APPLE || (REALM_LINUX && defined(__GNUC__))
#define REALM_HAVE_BACKTRACE 1
#endif

#if REALM_HAVE_BACKTRACE
Expand Down

0 comments on commit c09012e

Please sign in to comment.