mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
[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:
parent
dd53e7f79e
commit
00f4a0f89b
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue