diff --git a/Sources/Backtrace/Demangle.swift b/Sources/Backtrace/Demangle.swift index 011aa7e..5993e41 100644 --- a/Sources/Backtrace/Demangle.swift +++ b/Sources/Backtrace/Demangle.swift @@ -23,6 +23,7 @@ import ucrt #endif #endif +#if os(Linux) || os(Windows) @_silgen_name("swift_demangle") public func _stdlib_demangleImpl( @@ -53,3 +54,4 @@ internal func _stdlib_demangleName(_ mangledName: String) -> String { return mangledName } } +#endif