[ox/std] Change __has_include_nexts to __has_include
This commit is contained in:
		
							
								
								
									
										6
									
								
								deps/ox/src/ox/std/stacktrace.cpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								deps/ox/src/ox/std/stacktrace.cpp
									
									
									
									
										vendored
									
									
								
							| @@ -9,7 +9,7 @@ | ||||
| #if defined(OX_USE_STDLIB) && __has_include(<unistd.h>) | ||||
| #include <iostream> | ||||
|  | ||||
| #if __has_include_next(<execinfo.h>) | ||||
| #if __has_include(<execinfo.h>) | ||||
| #include <execinfo.h> | ||||
| #include <dlfcn.h> | ||||
| #endif | ||||
| @@ -32,7 +32,7 @@ static auto symbolicate([[maybe_unused]]char **frames, | ||||
|                         [[maybe_unused]]const char *linePrefix) { | ||||
| 	using StrT = BasicString<100>; | ||||
| 	Vector<StrT, 30> out; | ||||
| #if __has_include(<cxxabi.h>) && __has_include_next(<execinfo.h>) | ||||
| #if __has_include(<cxxabi.h>) && __has_include(<execinfo.h>) | ||||
| 	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(<unistd.h>) | ||||
|  | ||||
| void printStackTrace([[maybe_unused]]unsigned shave) noexcept { | ||||
| #if defined(OX_USE_STDLIB) && __has_include(<unistd.h>) && __has_include_next(<execinfo.h>) | ||||
| #if defined(OX_USE_STDLIB) && __has_include(<unistd.h>) && __has_include(<execinfo.h>) | ||||
| 	constexpr auto FrameCnt = 100; | ||||
| 	Vector<void*, FrameCnt> frames(FrameCnt); | ||||
| 	frames.resize(static_cast<std::size_t>(backtrace(frames.data(), static_cast<int>(frames.size())))); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user