mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 09:23:04 +08:00
[IPHLPAPI_WINETEST][IPHLPAPI] Sync iphlpapi_winetest to wine-10.0 (#8309)
- [IPHLPAPI_WINETEST] Sync to wine-10.0 - [IPHLPAPI] Add stubs for Vista+ functions so these functions can link properly when DLL_EXPORT_VERSION >= 0x600
This commit is contained in:
committed by
GitHub
parent
70406e0ccb
commit
fe497a2b23
@@ -1,8 +1,30 @@
|
||||
|
||||
add_definitions(-D__ROS_LONG64__)
|
||||
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/wine)
|
||||
|
||||
add_executable(iphlpapi_winetest iphlpapi.c testlist.c)
|
||||
target_link_libraries(iphlpapi_winetest wine)
|
||||
set_module_type(iphlpapi_winetest win32cui)
|
||||
add_importlibs(iphlpapi_winetest ws2_32 msvcrt kernel32 ntdll)
|
||||
add_importlibs(iphlpapi_winetest iphlpapi ws2_32 msvcrt kernel32 ntdll)
|
||||
add_rostests_file(TARGET iphlpapi_winetest)
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(iphlpapi_winetest PRIVATE
|
||||
/wd4024
|
||||
/wd4047
|
||||
/wd4133
|
||||
/wd4477)
|
||||
endif()
|
||||
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR
|
||||
CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
target_compile_options(iphlpapi_winetest PRIVATE
|
||||
-Wno-format
|
||||
-Wno-int-conversion
|
||||
-Wno-incompatible-pointer-types)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(iphlpapi_winetest PRIVATE
|
||||
WINETEST_USE_DBGSTR_LONGLONG
|
||||
__WINE_WINSOCKAPI_STDLIB_H
|
||||
strcasecmp=_stricmp)
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user