Use consistent defines for header availability

This commit is contained in:
Robin Gareus
2025-11-09 20:22:33 +01:00
parent 83d44860e0
commit 1ee5a68d76
6 changed files with 12 additions and 12 deletions

View File

@@ -19,7 +19,7 @@
#include "libpbd-config.h"
#ifdef HAVE_EXECINFO
#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#endif
@@ -47,7 +47,7 @@ std::ostream& operator<< (std::ostream& str, const Backtrace& bt) { return bt.pr
Backtrace::Backtrace()
{
#ifdef HAVE_EXECINFO
#ifdef HAVE_EXECINFO_H
size = ::backtrace (trace, 200);
#endif
}
@@ -59,7 +59,7 @@ Backtrace::print (std::ostream& str) const
size_t i;
if (size) {
#ifdef HAVE_EXECINFO
#ifdef HAVE_EXECINFO_H
strings = ::backtrace_symbols (trace, size);
#endif
if (strings) {