diff --git a/src/elf_common/elf_reader.h b/src/elf_common/elf_reader.h index ba4da5d..f36ba63 100644 --- a/src/elf_common/elf_reader.h +++ b/src/elf_common/elf_reader.h @@ -31,6 +31,18 @@ #pragma once +#ifdef WIN32 +#define __NT__ +#endif + +#ifdef _M_X64 +#define __X64__ +#endif + +#ifndef __IDP__ + #define __IDP__ +#endif + #include "elf.h" #include // TODO: do not depend on this diff --git a/src/wiiu/wiiu.cpp b/src/wiiu/wiiu.cpp index 505f652..2588145 100644 --- a/src/wiiu/wiiu.cpp +++ b/src/wiiu/wiiu.cpp @@ -39,9 +39,6 @@ static void idaapi cafe_loader ldr(&elf); ldr.apply(); } -#ifdef _WIN32 -__declspec(dllexport) -#endif loader_t LDSC = { IDP_INTERFACE_VERSION,