Check for TARGET_ macros in addition to GCC arch defines.
authorJonathan Chambers <joncham@gmail.com>
Thu, 30 Aug 2012 23:49:03 +0000 (19:49 -0400)
committerJonathan Chambers <joncham@gmail.com>
Thu, 30 Aug 2012 23:49:03 +0000 (19:49 -0400)
mono/metadata/sgen-archdep.h

index 28168e537f1dc47499ac36d2d9110805883faeef..616b5831ad42d74e0710c5d9a7f3d669b7af5228 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <mono/utils/mono-sigcontext.h>
 
-#ifdef __i386__
+#if defined(__i386__) || defined(TARGET_X86)
 
 #include <mono/utils/mono-context.h>
 
@@ -58,7 +58,7 @@
 #define ARCH_SIGCTX_SP(ctx)    (UCONTEXT_REG_ESP ((ctx)))
 #define ARCH_SIGCTX_IP(ctx)    (UCONTEXT_REG_EIP ((ctx)))
 
-#elif defined(__x86_64__)
+#elif defined(__x86_64__) || defined(TARGET_AMD64)
 
 #include <mono/utils/mono-context.h>