From d8e22fedc341a48effaf53de1f3e9f79ae573104 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Thu, 27 Aug 2020 00:34:59 +0200 Subject: Libraries: Unbreak building with extra debug macros --- Libraries/LibELF/DynamicLoader.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Libraries/LibELF/DynamicLoader.cpp') diff --git a/Libraries/LibELF/DynamicLoader.cpp b/Libraries/LibELF/DynamicLoader.cpp index ffac3283bd..9c7fd88969 100644 --- a/Libraries/LibELF/DynamicLoader.cpp +++ b/Libraries/LibELF/DynamicLoader.cpp @@ -35,7 +35,9 @@ #include #include -#define DYNAMIC_LOAD_DEBUG +#ifndef DYNAMIC_LOAD_DEBUG +# define DYNAMIC_LOAD_DEBUG +#endif //#define DYNAMIC_LOAD_VERBOSE #ifdef DYNAMIC_LOAD_VERBOSE @@ -82,8 +84,7 @@ DynamicLoader::DynamicLoader(const char* filename, int fd, size_t size) auto* elf_header = (Elf32_Ehdr*)m_file_mapping; - if (!validate_elf_header(*elf_header, m_file_size) || - !validate_program_headers(*elf_header, m_file_size, (u8*)m_file_mapping, m_file_size, m_program_interpreter)) { + if (!validate_elf_header(*elf_header, m_file_size) || !validate_program_headers(*elf_header, m_file_size, (u8*)m_file_mapping, m_file_size, m_program_interpreter)) { m_valid = false; } } -- cgit v1.2.3