summaryrefslogtreecommitdiff
path: root/AK/Demangle.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/Demangle.h')
-rw-r--r--AK/Demangle.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/AK/Demangle.h b/AK/Demangle.h
index b377556e4b..42dc1cdae4 100644
--- a/AK/Demangle.h
+++ b/AK/Demangle.h
@@ -29,7 +29,7 @@
#include <AK/String.h>
#include <AK/StringView.h>
-#ifndef __serenity__
+#ifndef BUILDING_SERENITY_TOOLCHAIN
# include <cxxabi.h>
#endif
@@ -37,10 +37,9 @@ namespace AK {
inline String demangle(const StringView& name)
{
-#ifdef __serenity__
+#ifdef BUILDING_SERENITY_TOOLCHAIN
return name;
#else
- // FIXME: Implement __cxa_demangle in serenity
int status = 0;
auto* demangled_name = abi::__cxa_demangle(name.to_string().characters(), nullptr, nullptr, &status);
auto string = String(status == 0 ? demangled_name : name);