Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
feat: Global definition _KERNEL_MODE
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroKaku committed Nov 3, 2022
1 parent 75ed2b0 commit f937cb0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/ucxxrt.props
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<!-- Include STL -->
<IncludePath>$(VC_IncludePath);$(IncludePath)</IncludePath>
</PropertyGroup>

<ItemDefinitionGroup Condition=" ('$(UCXXRT_KernelMode)'=='true') ">
<ClCompile>
<PreprocessorDefinitions>_NO_CRT_STDIO_INLINE;_HAS_EXCEPTIONS=1;_ITERATOR_DEBUG_LEVEL=0;__KERNEL_MODE=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand All @@ -73,6 +73,12 @@
</Link>
</ItemDefinitionGroup>

<ItemDefinitionGroup Condition=" ('$(UCXXRT_KernelMode)'=='true') ">
<ClCompile>
<PreprocessorDefinitions>_KERNEL_MODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>

<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<ClCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down
8 changes: 7 additions & 1 deletion src/ucxxrtlib.props
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ xcopy /D /S /Y /V /F "$(SolutionDir)lib" "$(SolutionDir)ucxxrt\lib\" /EXCLUDE:$(
</ClCompile>
</ItemDefinitionGroup>

<ItemDefinitionGroup Condition=" ('$(UCXXRT_KernelMode)'=='true') ">
<ClCompile>
<PreprocessorDefinitions>_KERNEL_MODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>

<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<ClCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -94,4 +100,4 @@ xcopy /D /S /Y /V /F "$(SolutionDir)lib" "$(SolutionDir)ucxxrt\lib\" /EXCLUDE:$(
Kernel Mode : $(UCXXRT_KernelMode)
" Importance="high" />
</Target>
</Project>
</Project>

0 comments on commit f937cb0

Please sign in to comment.