diff --git a/src/coreclr/src/inc/clrnt.h b/src/coreclr/src/inc/clrnt.h index a1eefe849efcb..0e082c79d5c31 100644 --- a/src/coreclr/src/inc/clrnt.h +++ b/src/coreclr/src/inc/clrnt.h @@ -835,13 +835,18 @@ RtlVirtualUnwind_Unsafe( // X86 // -#if defined(_TARGET_X86_) && !defined(FEATURE_PAL) +#ifdef _TARGET_X86_ +#ifndef FEATURE_PAL typedef struct _DISPATCHER_CONTEXT { _EXCEPTION_REGISTRATION_RECORD* RegistrationPointer; } DISPATCHER_CONTEXT, *PDISPATCHER_CONTEXT; -#endif // _TARGET_X86_ && !FEATURE_PAL +#endif // !FEATURE_PAL + +#define RUNTIME_FUNCTION__BeginAddress(prf) (prf)->BeginAddress + +#endif // _TARGET_X86_ #ifdef _TARGET_ARM_ #include "daccess.h" diff --git a/src/coreclr/src/inc/corcompile.h b/src/coreclr/src/inc/corcompile.h index 37c7fba480ed0..3b517ae21297a 100644 --- a/src/coreclr/src/inc/corcompile.h +++ b/src/coreclr/src/inc/corcompile.h @@ -85,7 +85,6 @@ typedef struct _RUNTIME_FUNCTION { typedef DPTR(RUNTIME_FUNCTION) PTR_RUNTIME_FUNCTION; -#define RUNTIME_FUNCTION__BeginAddress(prf) (prf)->BeginAddress // Chained unwind info. Used for cold methods. #define RUNTIME_FUNCTION_INDIRECT 0x80000000