Skip to content

Commit fef80b5

Browse files
committed
Add ARM and ARM64 platforms
Signed-off-by: Simon Rozman <simon@rozman.si>
1 parent 5f83e41 commit fef80b5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

MemoryModule.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,16 @@
5454
#define IMAGE_SIZEOF_BASE_RELOCATION (sizeof(IMAGE_BASE_RELOCATION))
5555
#endif
5656

57-
#ifdef _WIN64
57+
#if defined(_M_IX86)
58+
#define HOST_MACHINE IMAGE_FILE_MACHINE_I386
59+
#elif defined(_M_AMD64)
5860
#define HOST_MACHINE IMAGE_FILE_MACHINE_AMD64
61+
#elif defined(_M_ARM)
62+
#define HOST_MACHINE IMAGE_FILE_MACHINE_ARMNT
63+
#elif defined(_M_ARM64)
64+
#define HOST_MACHINE IMAGE_FILE_MACHINE_ARM64
5965
#else
60-
#define HOST_MACHINE IMAGE_FILE_MACHINE_I386
66+
#error Unsupported architecture
6167
#endif
6268

6369
#include "MemoryModule.h"

0 commit comments

Comments
 (0)