mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
002bef8635
As recommended by the CMake docs, let's tolerate systems or setups that don't have backtrace(3) in the `<execinfo.h>` header file, such as those using libbacktrace directly.
17 lines
336 B
C
17 lines
336 B
C
/*
|
|
* Copyright (c) 2024, Andrew Kaster <akaster@serenityos.org>.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#cmakedefine Backtrace_FOUND
|
|
#if defined(Backtrace_FOUND)
|
|
# define AK_HAS_BACKTRACE_HEADER
|
|
# undef Backtrace_FOUND
|
|
#endif
|
|
|
|
#if defined(AK_HAS_BACKTRACE_HEADER)
|
|
# include <@Backtrace_HEADER@>
|
|
#endif
|