Skip to content

Commit 1de09c4

Browse files
committed
[3RDPARTY] Link to oldnames for stricmp/wcsicmp
1 parent a3bab12 commit 1de09c4

File tree

48 files changed

+80
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+80
-51
lines changed

base/applications/cmdutils/cscript/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ add_executable(cscript ${SOURCE} rsrc.rc)
1313
add_idl_headers(cscript_idlheader ihost.idl)
1414
add_typelib(ihost.idl)
1515
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ihost.tlb)
16-
target_link_libraries(cscript uuid wine)
16+
target_link_libraries(cscript uuid wine oldnames)
1717
set_module_type(cscript win32cui UNICODE)
1818
add_delay_importlibs(cscript shlwapi)
1919
add_importlibs(cscript shell32 oleaut32 ole32 advapi32 user32 msvcrt kernel32 ntdll)

base/applications/cmdutils/reg/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ add_definitions(-D_WIN32_WINNT=0x600)
55
add_definitions(-D__WINESRC__)
66
add_executable(reg add.c copy.c delete.c export.c import.c query.c reg.c reg.rc)
77
set_module_type(reg win32cui UNICODE)
8-
target_link_libraries(reg wine)
8+
target_link_libraries(reg wine oldnames)
99
add_importlibs(reg advapi32 advapi32_vista user32 msvcrt kernel32 ntdll)
1010
add_cd_file(TARGET reg DESTINATION reactos/system32 FOR all)

base/applications/cmdutils/wscript/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ add_executable(wscript ${SOURCE} rsrc.rc)
1111
add_idl_headers(wscript_idlheader ihost.idl)
1212
add_typelib(ihost.idl)
1313
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ihost.tlb)
14-
target_link_libraries(wscript uuid wine)
14+
target_link_libraries(wscript uuid wine oldnames)
1515
set_module_type(wscript win32gui UNICODE)
1616
add_delay_importlibs(wscript shlwapi)
1717
add_importlibs(wscript shell32 oleaut32 ole32 user32 advapi32 msvcrt kernel32 ntdll)

base/applications/network/telnet/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ set_target_cpp_properties(telnet WITH_EXCEPTIONS)
2727

2828
if (MSVC)
2929
# C4838: conversion from 'int' to 'SHORT' requires a narrowing conversion
30-
# C4996: 'strnicmp': Deprecated POSIX name, Try _strnicmp instead!
31-
target_compile_options(telnet PRIVATE /wd4838 /wd4996)
32-
endif()
33-
34-
if (NOT MSVC)
35-
target_compile_definitions(telnet PRIVATE _CRT_NONSTDC_NO_DEPRECATE)
30+
target_compile_options(telnet PRIVATE /wd4838)
3631
endif()
3732

3833
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")

base/applications/winhlp32/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
44
add_definitions(
55
-D__WINESRC__
66
-D__ROS_LONG64__
7-
-Dfileno=_fileno
8-
-Disatty=_isatty)
7+
-Dstrcasecmp=_stricmp
8+
)
99

1010
list(APPEND SOURCE
1111
callback.c
@@ -27,7 +27,7 @@ add_executable(winhlp32
2727
rsrc.rc)
2828

2929
set_module_type(winhlp32 win32gui)
30-
target_link_libraries(winhlp32 wine)
30+
target_link_libraries(winhlp32 wine oldnames)
3131
add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)
3232
add_pch(winhlp32 precomp.h "${PCH_SKIP_SOURCE}")
3333
add_cd_file(TARGET winhlp32 DESTINATION reactos FOR all)

base/services/nfsd/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ else()
5656
target_compile_options(nfsd PRIVATE "-w")
5757
endif()
5858

59+
target_link_libraries(nfsd oldnames)
60+
5961
set_module_type(nfsd win32cui)
6062
add_importlibs(nfsd advapi32 iphlpapi kernel32_vista libtirpc msvcrt shell32 ws2_32 wldap32 kernel32 ntdll)
6163
add_pch(nfsd precomp.h SOURCE)

base/services/tftpd/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set_module_type(tftpd win32cui)
44
add_importlibs(tftpd advapi32 ws2_32 iphlpapi msvcrt kernel32)
55
add_cd_file(TARGET tftpd DESTINATION reactos/system32 FOR all)
66

7+
add_definitions(-Dstrcasecmp=_stricmp)
8+
79
if (MSVC)
810
# Disable warning C4267: 'initializing': conversion from 'size_t' to 'unsigned short', possible loss of data
911
target_compile_options(tftpd PRIVATE /wd4267)

base/system/format/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
44

55
add_executable(format format.c format.rc)
66
set_module_type(format win32cui UNICODE)
7-
target_link_libraries(format conutils ${PSEH_LIB})
7+
target_link_libraries(format conutils ${PSEH_LIB} oldnames)
88
add_importlibs(format fmifs msvcrt kernel32 ntdll)
99
set_target_properties(format PROPERTIES SUFFIX ".com")
1010
add_cd_file(TARGET format DESTINATION reactos/system32 FOR all)

dll/directx/wine/d3dcompiler_43/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
add_definitions(
33
-D__WINESRC__
44
-D__ROS_LONG64__
5+
-Dstrcasecmp=_stricmp
56
-DDIRECT3D_VERSION=0x0900)
67

78
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)

dll/directx/wine/d3dx9_36/d3dx9.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function(add_d3dx9_target __version)
3939
add_definitions(-D__ROS_LONG64__)
4040
set_module_type(${module} win32dll)
4141
add_dependencies(${module} d3d_idl_headers)
42-
target_link_libraries(${module} dxguid wine)
42+
target_link_libraries(${module} dxguid wine oldnames)
4343
add_importlibs(${module} d3dcompiler_43 d3dxof usp10 user32 ole32 gdi32 msvcrt kernel32 ntdll)
4444
add_delay_importlibs(${module} windowscodecs)
4545
add_pch(${module} ../d3dx9_36/precomp.h "${PCH_SKIP_SOURCE}")

0 commit comments

Comments
 (0)