From: Egor Chesakov Date: Fri, 23 Feb 2018 20:35:29 +0000 (-0800) Subject: Define _TARGET_64BIT_ macro if not defined when _TARGET_AMD64_ or _TARGET_ARM64_... X-Git-Tag: accepted/tizen/unified/20190422.045933~2833^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=246a587d59421f9c8ffa4e2b81abe1a37c359cae;p=platform%2Fupstream%2Fcoreclr.git Define _TARGET_64BIT_ macro if not defined when _TARGET_AMD64_ or _TARGET_ARM64_ in src/jit/jit.h --- diff --git a/src/jit/jit.h b/src/jit/jit.h index 8297070..de5f766 100644 --- a/src/jit/jit.h +++ b/src/jit/jit.h @@ -161,8 +161,19 @@ #endif #if defined(_TARGET_AMD64_) || defined(_TARGET_ARM64_) +#ifndef _TARGET_64BIT_ #define _TARGET_64BIT_ -#endif +#endif // _TARGET_64BIT_ +#endif // defined(_TARGET_AMD64_) || defined(_TARGET_ARM64_) + +#ifdef _TARGET_64BIT_ +#ifdef _TARGET_X86_ +#error Cannot define both _TARGET_X86_ and _TARGET_64BIT_ +#endif // _TARGET_X86_ +#ifdef _TARGET_ARM_ +#error Cannot define both _TARGET_ARM_ and _TARGET_64BIT_ +#endif // _TARGET_ARM_ +#endif // _TARGET_64BIT_ #if defined(_TARGET_X86_) || defined(_TARGET_AMD64_) #define _TARGET_XARCH_