mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-04 07:27:23 +01:00
don't depend on POCO_HAVE_CXXABI_H
This commit is contained in:
parent
70bb8f13f9
commit
573e01806b
@ -3,8 +3,13 @@
|
||||
//
|
||||
|
||||
|
||||
#if defined(__clang__) || defined (__GNUC__)
|
||||
#define HAVE_CXXABI_H
|
||||
#endif
|
||||
|
||||
|
||||
#include "CppUnit/TestResult.h"
|
||||
#ifdef POCO_HAVE_CXXABI_H
|
||||
#ifdef HAVE_CXXABI_H
|
||||
#include <cxxabi.h>
|
||||
#include <cstdlib>
|
||||
#endif
|
||||
@ -31,7 +36,7 @@ TestResult::~TestResult()
|
||||
std::string TestResult::demangle(const char* typeName)
|
||||
{
|
||||
std::string result;
|
||||
#ifdef POCO_HAVE_CXXABI_H
|
||||
#ifdef HAVE_CXXABI_H
|
||||
int status;
|
||||
char* demangled = abi::__cxa_demangle(typeName, nullptr, nullptr, &status);
|
||||
if (demangled)
|
||||
|
Loading…
x
Reference in New Issue
Block a user