From be9de62c7e951ea7e7cfc932466a40370909bf2d Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Thu, 10 Nov 2011 13:16:48 +0100 Subject: Don't let yaffut try to demangle when autoconf figures this won't work --- flower/include/yaffut.hh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'flower') diff --git a/flower/include/yaffut.hh b/flower/include/yaffut.hh index 376c036ed1..cf444626d9 100644 --- a/flower/include/yaffut.hh +++ b/flower/include/yaffut.hh @@ -6,7 +6,12 @@ #ifndef __YAFFUT_H__ #define __YAFFUT_H__ +#include "config.hh" +#if HAVE_CXA_DEMANGLE #include +#else +#include +#endif #include #include @@ -65,6 +70,7 @@ namespace yaffut template std::string demangle () { +#if HAVE_CXA_DEMANGLE size_t sz; int status; char *ptr = abi::__cxa_demangle (typeid (T).name (), 0, &sz, &status); @@ -76,6 +82,9 @@ std::string demangle () name = name.substr (pos + 2); } return name; +#else + return typeid (T).name (); +#endif } struct ITest -- cgit v1.2.3