diff --git a/public/client/TracyElf.hpp b/public/client/TracyElf.hpp index 43a88650..1e2a3011 100644 --- a/public/client/TracyElf.hpp +++ b/public/client/TracyElf.hpp @@ -3,11 +3,6 @@ #include -#if !defined(__GLIBC__) && !defined(__WORDSIZE) -// include __WORDSIZE headers for musl -# include -#endif - namespace tracy { @@ -15,14 +10,14 @@ using elf_half = uint16_t; using elf_word = uint32_t; using elf_sword = int32_t; -#if __WORDSIZE == 32 - using elf_addr = uint32_t; - using elf_off = uint32_t; - using elf_xword = uint32_t; -#else +#if __SIZEOF_POINTER__ == 8 using elf_addr = uint64_t; using elf_off = uint64_t; using elf_xword = uint64_t; +#else + using elf_addr = uint32_t; + using elf_off = uint32_t; + using elf_xword = uint32_t; #endif struct elf_ehdr diff --git a/public/libbacktrace/config.h b/public/libbacktrace/config.h index 87e38a95..c33e2731 100644 --- a/public/libbacktrace/config.h +++ b/public/libbacktrace/config.h @@ -1,9 +1,4 @@ -#include -#if defined(__linux__) && !defined(__GLIBC__) && !defined(__WORDSIZE) -// include __WORDSIZE headers for musl -# include -#endif -#if __WORDSIZE == 64 +#if __SIZEOF_POINTER__ == 8 # define BACKTRACE_ELF_SIZE 64 #else # define BACKTRACE_ELF_SIZE 32