From fef908be21e11f38644b7140f270997c38daba99 Mon Sep 17 00:00:00 2001 From: Egor Chesakov Date: Fri, 2 Mar 2018 16:39:36 -0800 Subject: Use TARGET_POINTER_SIZE macro (#16640) * Replace sizeof(void*) with TARGET_POINTER_SIZE in TYPEINFO in src/inc/cortypeinfo.h * Replace sizeof(LPVOID) with TARGET_POINTER_SIZE in DEFINEELEMENTTYPEINFO in src/vm/siginfo.cpp * Define TARGET_POINTER_SIZE as POINTERSIZE_BYTES in src/ToolBox/SOS/Strike/util.h --- src/ToolBox/SOS/Strike/util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ToolBox') diff --git a/src/ToolBox/SOS/Strike/util.h b/src/ToolBox/SOS/Strike/util.h index a6ca86e847..7ffba1cee8 100644 --- a/src/ToolBox/SOS/Strike/util.h +++ b/src/ToolBox/SOS/Strike/util.h @@ -60,6 +60,10 @@ struct IMDInternalImport; #define POINTERSIZE_TYPE "I32" #endif +#ifndef TARGET_POINTER_SIZE +#define TARGET_POINTER_SIZE POINTERSIZE_BYTES +#endif // TARGET_POINTER_SIZE + #if defined(_MSC_VER) #pragma warning(disable:4510 4512 4610) #endif -- cgit v1.2.3