mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 01:10:28 +03:00
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.
18 lines
336 B
C
18 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
|