projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dffb9da
)
Check for TARGET_ macros in addition to GCC arch defines.
author
Jonathan Chambers
<joncham@gmail.com>
Thu, 30 Aug 2012 23:49:03 +0000
(19:49 -0400)
committer
Jonathan Chambers
<joncham@gmail.com>
Thu, 30 Aug 2012 23:49:03 +0000
(19:49 -0400)
mono/metadata/sgen-archdep.h
patch
|
blob
|
history
diff --git
a/mono/metadata/sgen-archdep.h
b/mono/metadata/sgen-archdep.h
index 28168e537f1dc47499ac36d2d9110805883faeef..616b5831ad42d74e0710c5d9a7f3d669b7af5228 100644
(file)
--- a/
mono/metadata/sgen-archdep.h
+++ b/
mono/metadata/sgen-archdep.h
@@
-28,7
+28,7
@@
#include <mono/utils/mono-sigcontext.h>
-#if
def __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>