Skip to content

Commit e663e2a

Browse files
committed
Fix C++ build and add C++ source to compile
1 parent a88df2b commit e663e2a

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

Source/Include/KNSoft/NDK/Win32/API/msidle.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ _Inline_EndIdleDetection(
102102
return FALSE;
103103
}
104104
_InterlockedExchangePointer((void* volatile*)&_Inline_MSIdle_g_pfnCallback, NULL);
105-
Timer = _InterlockedExchangePointer((void* volatile*)&_Inline_MSIdle_g_pIdleTimer, NULL);
105+
Timer = (PTP_TIMER)_InterlockedExchangePointer((void* volatile*)&_Inline_MSIdle_g_pIdleTimer, NULL);
106106
if (Timer != NULL)
107107
{
108108
_Inline_SetThreadpoolTimer(Timer, NULL, 0, 0);

Source/UnitTest/CppCompile.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
* Compile in C++
3+
*/
4+
5+
#include "UnitTest.h"

Source/UnitTest/UnitTest.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
</ItemDefinitionGroup>
217217
<ItemGroup>
218218
<ClCompile Include="Assembly.c" />
219+
<ClCompile Include="CppCompile.cpp" />
219220
<ClCompile Include="Extension\MSVC.c" />
220221
<ClCompile Include="Main.c" />
221222
<ClCompile Include="NT\Bcd.c" />

Source/UnitTest/UnitTest.vcxproj.filters

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
</ClCompile>
1919
<ClCompile Include="Assembly.c" />
2020
<ClCompile Include="RandGen.c" />
21+
<ClCompile Include="CppCompile.cpp" />
2122
</ItemGroup>
2223
<ItemGroup>
2324
<Filter Include="NT">

0 commit comments

Comments
 (0)