Skip to content

Commit 8db55e0

Browse files
author
Qiang Kou
committed
backtrace only when using glibc
1 parent 82d8a3a commit 8db55e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ using namespace Rcpp;
3434
#endif
3535

3636
#if defined(__GNUC__)
37-
#if defined(_WIN32) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) || defined(__sun) || defined(_AIX)
37+
#if defined(_WIN32) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) || defined(__sun) || defined(_AIX) || !defined(__GLIBC__)
3838
// do nothing
3939
#else
4040
#include <execinfo.h>
@@ -257,7 +257,7 @@ SEXP rcpp_can_use_cxx11() {
257257
// [[Rcpp::register]]
258258
SEXP stack_trace(const char* file, int line) {
259259
#if defined(__GNUC__)
260-
#if defined(_WIN32) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) || defined(__sun) || defined(_AIX)
260+
#if defined(_WIN32) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) || defined(__sun) || defined(_AIX) || !defined(__GLIBC__)
261261
// Simpler version for Windows and *BSD
262262
List trace = List::create(_["file"] = file,
263263
_[ "line" ] = line,

0 commit comments

Comments
 (0)