From 5397d93d55f20f3fc3f40705fd517eeae9909259 Mon Sep 17 00:00:00 2001 From: Jonathan Chambers Date: Thu, 30 Aug 2012 19:49:03 -0400 Subject: [PATCH] Check for TARGET_ macros in addition to GCC arch defines. --- mono/metadata/sgen-archdep.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mono/metadata/sgen-archdep.h b/mono/metadata/sgen-archdep.h index 28168e537f1..616b5831ad4 100644 --- a/mono/metadata/sgen-archdep.h +++ b/mono/metadata/sgen-archdep.h @@ -28,7 +28,7 @@ #include -#ifdef __i386__ +#if defined(__i386__) || defined(TARGET_X86) #include @@ -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 -- 2.25.1