diff --git a/src/ARMJIT.h b/src/ARMJIT.h index 7ea54724..7619f234 100644 --- a/src/ARMJIT.h +++ b/src/ARMJIT.h @@ -25,9 +25,9 @@ #include "types.h" #include "MemConstants.h" #include "Args.h" +#include "ARMJIT_Memory.h" #ifdef JIT_ENABLED -#include "ARMJIT_Memory.h" #include "JitBlock.h" #if defined(__APPLE__) && defined(__aarch64__) diff --git a/src/ARMJIT_Memory.h b/src/ARMJIT_Memory.h index 487005b2..d36f6032 100644 --- a/src/ARMJIT_Memory.h +++ b/src/ARMJIT_Memory.h @@ -20,33 +20,33 @@ #define ARMJIT_MEMORY #include "types.h" -#include "TinyVector.h" - -#include "ARM.h" #include "MemConstants.h" -#if defined(__SWITCH__) -#include -#elif defined(_WIN32) +#ifdef JIT_ENABLED +# include "TinyVector.h" +# include "ARM.h" +# if defined(__SWITCH__) +# include +# elif defined(_WIN32) #include +# else +# include +# include +# include +# include +# include +# endif #else -#include -#include -#include -#include -#include -#endif - -#ifndef JIT_ENABLED -#include -#include "NDS.h" +# include #endif namespace melonDS { +#ifdef JIT_ENABLED namespace Platform { struct DynamicLibrary; } class Compiler; class ARMJIT; +#endif constexpr u32 RoundUp(u32 size) noexcept {