We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f83e41 commit fef80b5Copy full SHA for fef80b5
MemoryModule.c
@@ -54,10 +54,16 @@
54
#define IMAGE_SIZEOF_BASE_RELOCATION (sizeof(IMAGE_BASE_RELOCATION))
55
#endif
56
57
-#ifdef _WIN64
+#if defined(_M_IX86)
58
+#define HOST_MACHINE IMAGE_FILE_MACHINE_I386
59
+#elif defined(_M_AMD64)
60
#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
65
#else
-#define HOST_MACHINE IMAGE_FILE_MACHINE_I386
66
+#error Unsupported architecture
67
68
69
#include "MemoryModule.h"
0 commit comments