base/debug: Fix uClibc macro condition

This commit is contained in:
klzgrad 2019-11-30 22:37:57 +08:00
parent cba356ef94
commit dc2d695ac7

View File

@ -125,6 +125,10 @@ class BASE_EXPORT StackTrace {
// prefix string prepended to each line.
void OutputToStreamWithPrefix(std::ostream* os,
cstring_view prefix_string) const;
#else
void OutputToStream(std::ostream* os) const;
void OutputToStreamWithPrefix(std::ostream* os,
cstring_view prefix_string) const;
#endif
// Resolves backtrace to symbols and returns as string.
@ -148,6 +152,9 @@ class BASE_EXPORT StackTrace {
#if !defined(__UCLIBC__) && !defined(_AIX)
void OutputToStreamWithPrefixImpl(std::ostream* os,
cstring_view prefix_string) const;
#else
void OutputToStreamWithPrefixImpl(std::ostream* os,
cstring_view prefix_string) const {}
#endif
// Returns true if generation of symbolized stack traces is to be suppressed.