From b818c1e3d6b3ddfbebdeea02341174ca8c955f81 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 18 Dec 2022 21:11:41 -0600 Subject: [PATCH] [ox/std] Change __has_include_nexts to __has_include --- deps/ox/src/ox/std/stacktrace.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/ox/src/ox/std/stacktrace.cpp b/deps/ox/src/ox/std/stacktrace.cpp index d94a5236..9dc1f387 100644 --- a/deps/ox/src/ox/std/stacktrace.cpp +++ b/deps/ox/src/ox/std/stacktrace.cpp @@ -9,7 +9,7 @@ #if defined(OX_USE_STDLIB) && __has_include() #include -#if __has_include_next() +#if __has_include() #include #include #endif @@ -32,7 +32,7 @@ static auto symbolicate([[maybe_unused]]char **frames, [[maybe_unused]]const char *linePrefix) { using StrT = BasicString<100>; Vector out; -#if __has_include() && __has_include_next() +#if __has_include() && __has_include() for (auto i = 0u; i < symbolsLen; ++i) { Dl_info info; if (dladdr(frames[i], &info) && info.dli_sname) { @@ -51,7 +51,7 @@ static auto symbolicate([[maybe_unused]]char **frames, #endif // defined(OX_USE_STDLIB) && __has_include() void printStackTrace([[maybe_unused]]unsigned shave) noexcept { -#if defined(OX_USE_STDLIB) && __has_include() && __has_include_next() +#if defined(OX_USE_STDLIB) && __has_include() && __has_include() constexpr auto FrameCnt = 100; Vector frames(FrameCnt); frames.resize(static_cast(backtrace(frames.data(), static_cast(frames.size()))));