Remove guard for resolve_l_name

This commit is contained in:
Jeremy 2024-05-02 11:09:37 -05:00
parent ce19421bb5
commit d3c7e7351c
No known key found for this signature in database
GPG Key ID: 3E11861CB34E158C

View File

@ -23,7 +23,6 @@
namespace cpptrace { namespace cpptrace {
namespace detail { namespace detail {
#if IS_LINUX || IS_APPLE #if IS_LINUX || IS_APPLE
#if IS_LINUX
inline std::string resolve_l_name(const char* l_name) { inline std::string resolve_l_name(const char* l_name) {
if(l_name != nullptr && l_name[0] != 0) { if(l_name != nullptr && l_name[0] != 0) {
return l_name; return l_name;
@ -39,7 +38,6 @@ namespace detail {
} }
} }
} }
#endif
#ifdef CPPTRACE_HAS_DL_FIND_OBJECT #ifdef CPPTRACE_HAS_DL_FIND_OBJECT
inline object_frame get_frame_object_info(frame_ptr address) { inline object_frame get_frame_object_info(frame_ptr address) {
// Use _dl_find_object when we can, it's orders of magnitude faster // Use _dl_find_object when we can, it's orders of magnitude faster