aboutsummaryrefslogtreecommitdiff
path: root/src/ARMJIT_Memory.h
diff options
context:
space:
mode:
authorJesse Talavera-Greenberg <jesse@jesse.tg>2023-12-06 09:41:29 -0500
committerNadia Holmquist Pedersen <nadia@nhp.sh>2023-12-08 17:19:00 +0100
commit72d4eba477d6c3189b05b4ac6c115716cc267f9b (patch)
tree576b38ced8e8e4ca2c41f47dffea3c989bbb4b08 /src/ARMJIT_Memory.h
parent7cef13031fceeaff5b9269d05e1209b1e4661c2d (diff)
Rearrange some `#include`s
Diffstat (limited to 'src/ARMJIT_Memory.h')
-rw-r--r--src/ARMJIT_Memory.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/ARMJIT_Memory.h b/src/ARMJIT_Memory.h
index 487005b..d36f603 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 <switch.h>
-#elif defined(_WIN32)
+#ifdef JIT_ENABLED
+# include "TinyVector.h"
+# include "ARM.h"
+# if defined(__SWITCH__)
+# include <switch.h>
+# elif defined(_WIN32)
#include <windows.h>
+# else
+# include <sys/mman.h>
+# include <sys/stat.h>
+# include <fcntl.h>
+# include <unistd.h>
+# include <signal.h>
+# endif
#else
-#include <sys/mman.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <signal.h>
-#endif
-
-#ifndef JIT_ENABLED
-#include <array>
-#include "NDS.h"
+# include <array>
#endif
namespace melonDS
{
+#ifdef JIT_ENABLED
namespace Platform { struct DynamicLibrary; }
class Compiler;
class ARMJIT;
+#endif
constexpr u32 RoundUp(u32 size) noexcept
{