[RICHED20] Enable thiscall wrappers for MSVC

Properly fix thiscall functions by enabling thiscall wrappers on MSVC builds.
See CORE-20079, CORE-20006
This commit is contained in:
Timo Kreuzer 2025-04-06 13:19:09 +03:00
parent dd53e7f79e
commit 00f4a0f89b

View file

@ -36,6 +36,11 @@ add_library(riched20 MODULE
version.rc
${CMAKE_CURRENT_BINARY_DIR}/riched20.def)
if(MSVC AND ARCH STREQUAL "i386")
# MSVC doesn't support __thiscall in C code
target_compile_definitions(riched20 PRIVATE __ASM_USE_THISCALL_WRAPPER)
endif()
add_typelib(riched_tom.idl)
add_dependencies(riched20 stdole2)
set_module_type(riched20 win32dll)