diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a6a7503d..4e8a8c7c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -607,10 +607,6 @@ endif() if(USE_ELF) list(APPEND FEATURES ELF) include_directories(AFTER ${LIBELF_INCLUDE_DIRS}) - find_file(ELF_REPL_H elf_repl.h PATHS ${LIBELF_INCLUDE_DIRS} NO_CMAKE_FIND_ROOT_PATH) - if (ELF_REPL_H) - add_definitions(-DUSE_ELF_REPL) - endif() list(APPEND DEPENDENCY_LIB ${LIBELF_LIBRARIES}) set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libelfg0") endif() diff --git a/include/mgba-util/elf-read.h b/include/mgba-util/elf-read.h index e3886ac64..86683ea82 100644 --- a/include/mgba-util/elf-read.h +++ b/include/mgba-util/elf-read.h @@ -14,12 +14,6 @@ CXX_GUARD_START #include -#if USE_ELF_REPL -#include -#else -#include -#endif - #include struct ELF;