Fix compiling on both MSVC & mingw32

Turns out easyX is different on MSVC and mingw32
This commit is contained in:
2024-03-25 21:10:40 +08:00
parent 0d44ce87ff
commit 8bf4d95384
6 changed files with 117 additions and 21 deletions

View File

@ -104,6 +104,7 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
@ -118,6 +119,7 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
@ -127,9 +129,17 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="Physics_Component.h" />
<ClInclude Include="Entity.h" />
<ClInclude Include="Types.h" />
<ClInclude Include="app.h" />
<ClInclude Include="camera.h" />
<ClInclude Include="entity.h" />
<ClInclude Include="input.h" />
<ClInclude Include="particle.h" />
<ClInclude Include="physics.h" />
<ClInclude Include="player.h" />
<ClInclude Include="render_pattern.h" />
<ClInclude Include="render_util.h" />
<ClInclude Include="types.h" />
<ClInclude Include="util\assert.h" />
<ClInclude Include="util\minmax.h" />
<ClInclude Include="util\queue.h" />
<ClInclude Include="util\tree.h" />
@ -137,9 +147,21 @@
<ClInclude Include="util\vector.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="Types.c" />
<ClCompile Include="Physics_Component.c" />
<ClCompile Include="Physics_Move.c" />
<ClCompile Include="app.c" />
<ClCompile Include="app_debug.c" />
<ClCompile Include="app_render.cpp" />
<ClCompile Include="camera.c" />
<ClCompile Include="entity.c" />
<ClCompile Include="input.c" />
<ClCompile Include="main.cpp" />
<ClCompile Include="particle.c" />
<ClCompile Include="particle_render.cpp" />
<ClCompile Include="physics.c" />
<ClCompile Include="physics_move.c" />
<ClCompile Include="player.c" />
<ClCompile Include="render_pattern.c" />
<ClCompile Include="render_util.cpp" />
<ClCompile Include="types.c" />
<ClCompile Include="util\queue.c" />
<ClCompile Include="util\tree.c" />
<ClCompile Include="util\vector.c" />