From f293e2d46492ed9221a3864fdd6613f263cf5bef Mon Sep 17 00:00:00 2001 From: TeamCemu Date: Wed, 19 Jun 2019 14:07:38 +0200 Subject: [PATCH] added missing defines to compile --- src/elf_common/elf_reader.h | 12 ++++++++++++ src/wiiu/wiiu.cpp | 3 --- 2 files changed, 12 insertions(+), 3 deletions(-) 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,