Skip to content

Commit

Permalink
user.exe16: Fix stub (2).
Browse files Browse the repository at this point in the history
  • Loading branch information
otya128 committed Nov 13, 2021
1 parent 1c7ecf6 commit ca56d0c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion user/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file(GLOB SOURCE *.c *.cpp)
file(GLOB SOURCE *.c)
add_library(user SHARED ${SOURCE} ${CMAKE_CURRENT_BINARY_DIR}/user.def user.exe16.obj)
include_directories(../wine)
add_definitions(-D_X86_ -D__WINESRC__ -D__i386__ -DHAVE_STRNCASECMP -DHAVE__STRNICMP -D_WINTERNL_ -DNtCurrentTeb=NtCurrentTeb__ -DDECLSPEC_HIDDEN= -Dstrncasecmp=_strnicmp -D_WIN32_WINNT=0x0A00)
Expand Down
5 changes: 0 additions & 5 deletions user/stub.cpp → user/stub.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
extern "C"
{
#define new _new

#include "wine/debug.h"
#include "user_private.h"

Expand Down Expand Up @@ -161,4 +157,3 @@ LONG WINAPI GdiGetCharDimensions(HDC hdc, LPTEXTMETRICW lptm, LONG *height)
if (height) *height = sz.cy;
return (sz.cx / 26 + 1) / 2;
}
}
2 changes: 1 addition & 1 deletion user/user.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<ClCompile Include="hook.c" />
<ClCompile Include="message.c" />
<ClCompile Include="network.c" />
<ClCompile Include="stub.cpp">
<ClCompile Include="stub.c">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="user.c" />
Expand Down
6 changes: 3 additions & 3 deletions user/user.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
<ClCompile Include="dialog.c">
<Filter>ソース ファイル</Filter>
</ClCompile>
<ClCompile Include="stub.cpp">
<Filter>ソース ファイル</Filter>
</ClCompile>
<ClCompile Include="winhelp.c">
<Filter>ソース ファイル</Filter>
</ClCompile>
<ClCompile Include="dde.c">
<Filter>ソース ファイル</Filter>
</ClCompile>
<ClCompile Include="stub.c">
<Filter>ソース ファイル</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="user_private.h">
Expand Down

0 comments on commit ca56d0c

Please sign in to comment.