don't depend on POCO_HAVE_CXXABI_H

This commit is contained in:
Günter Obiltschnig 2023-10-02 07:41:18 +02:00
parent 70bb8f13f9
commit 573e01806b

View File

@ -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)