File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed
Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -37,18 +37,22 @@ using namespace Rcpp;
3737 #if defined(_WIN32) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) || defined(__sun) || defined(_AIX)
3838 // do nothing
3939 #else
40- #include < execinfo.h>
41-
42- static std::string demangler_one (const char * input) {
43- static std::string buffer;
44- buffer = input;
45- buffer.resize (buffer.find_last_of (' +' ) - 1 );
46- buffer.erase (
47- buffer.begin (),
48- buffer.begin () + buffer.find_last_of (' ' ) + 1
49- );
50- return demangle (buffer);
51- }
40+ #ifndef __GLIBC__
41+ // do nothing
42+ #else
43+ #include < execinfo.h>
44+
45+ static std::string demangler_one (const char * input) {
46+ static std::string buffer;
47+ buffer = input;
48+ buffer.resize (buffer.find_last_of (' +' ) - 1 );
49+ buffer.erase (
50+ buffer.begin (),
51+ buffer.begin () + buffer.find_last_of (' ' ) + 1
52+ );
53+ return demangle (buffer);
54+ }
55+ #endif
5256
5357 #endif
5458#endif
You can’t perform that action at this time.
0 commit comments