mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-02 08:28:30 +00:00
__WORDSIZE has been relocated from bits/reg.h (now an empty header) to sys/reg.h in 2024: https://git.musl-libc.org/cgit/musl/commit/?id=e709a6f07ade208ba513f9225222336f30c304b0 And in any case, it's a private definition. Let's use a common documented define instead: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html Fixes symbol resolution on musl (particularly, postmarketOS aarch64).
22 lines
445 B
C
22 lines
445 B
C
#if __SIZEOF_POINTER__ == 8
|
|
# define BACKTRACE_ELF_SIZE 64
|
|
#else
|
|
# define BACKTRACE_ELF_SIZE 32
|
|
#endif
|
|
|
|
#define HAVE_DLFCN_H 1
|
|
#define HAVE_FCNTL 1
|
|
#define HAVE_INTTYPES_H 1
|
|
#define HAVE_LSTAT 1
|
|
#define HAVE_READLINK 1
|
|
#define HAVE_DL_ITERATE_PHDR 1
|
|
#define HAVE_ATOMIC_FUNCTIONS 1
|
|
#define HAVE_DECL_STRNLEN 1
|
|
|
|
#ifdef __APPLE__
|
|
# define HAVE_MACH_O_DYLD_H 1
|
|
#elif defined BSD
|
|
# define HAVE_KERN_PROC 1
|
|
# define HAVE_KERN_PROC_ARGS 1
|
|
#endif
|