Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MSVC project for 2.93c. #523

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions arch/msvc/Core.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ echo #define VERSION_DATE " ($(BuildDate))"&gt;&gt;$(SolutionDir)version.h</Comm
<ClCompile Include="..\..\contrib\libxmp\src\far_extras.c" />
<ClCompile Include="..\..\contrib\libxmp\src\filetype.c" />
<ClCompile Include="..\..\contrib\libxmp\src\filter.c" />
<ClCompile Include="..\..\contrib\libxmp\src\flow.c" />
<ClCompile Include="..\..\contrib\libxmp\src\format.c" />
<ClCompile Include="..\..\contrib\libxmp\src\hio.c" />
<ClCompile Include="..\..\contrib\libxmp\src\hmn_extras.c" />
Expand Down Expand Up @@ -283,6 +284,7 @@ echo #define VERSION_DATE " ($(BuildDate))"&gt;&gt;$(SolutionDir)version.h</Comm
<ClCompile Include="..\..\src\intake_num.c" />
<ClCompile Include="..\..\src\io\fsafeopen.c" />
<ClCompile Include="..\..\src\io\path.c" />
<ClCompile Include="..\..\src\io\vfs.c" />
<ClCompile Include="..\..\src\io\vio.c" />
<ClCompile Include="..\..\src\io\zip.c" />
<ClCompile Include="..\..\src\io\zip_stream.c" />
Expand Down Expand Up @@ -384,6 +386,7 @@ echo #define VERSION_DATE " ($(BuildDate))"&gt;&gt;$(SolutionDir)version.h</Comm
<ClInclude Include="..\..\src\io\memfile.h" />
<ClInclude Include="..\..\src\io\path.h" />
<ClInclude Include="..\..\src\io\vfile.h" />
<ClInclude Include="..\..\src\io\vfs.h" />
<ClInclude Include="..\..\src\io\vio.h" />
<ClInclude Include="..\..\src\io\vio_win32.h" />
<ClInclude Include="..\..\src\io\zip.h" />
Expand Down
9 changes: 9 additions & 0 deletions arch/msvc/Core.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,12 @@
<ClCompile Include="..\..\contrib\libxmp\src\rng.c">
<Filter>Source Files\contrib\libxmp</Filter>
</ClCompile>
<ClCompile Include="..\..\contrib\libxmp\src\flow.c">
<Filter>Source Files\contrib\libxmp</Filter>
</ClCompile>
<ClCompile Include="..\..\src\io\vfs.c">
<Filter>Source Files\io</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\block.h">
Expand Down Expand Up @@ -746,5 +752,8 @@
<ClInclude Include="..\..\contrib\libxmp\src\rng.h">
<Filter>Header Files\contrib\libxmp</Filter>
</ClInclude>
<ClInclude Include="..\..\src\io\vfs.h">
<Filter>Header Files\io</Filter>
</ClInclude>
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions arch/msvc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
#define CONFIG_ICON
#define CONFIG_MODULAR
#define CONFIG_CHECK_ALLOC
#define CONFIG_VFS
#define CONFIG_GAMECONTROLLERDB
36 changes: 36 additions & 0 deletions arch/msvc/msvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,42 @@
#ifndef S_ISDIR
#define S_ISDIR(mode) (mode & _S_IFDIR)
#endif
#ifndef S_IRUSR
#define S_IRUSR _S_IREAD
#endif
#ifndef S_IWUSR
#define S_IWUSR _S_IWRITE
#endif
#ifndef S_IXUSR
#define S_IXUSR _S_IEXEC
#endif
#ifndef S_IRGRP
#define S_IRGRP (S_IRUSR >> 3)
#endif
#ifndef S_IWGRP
#define S_IWGRP (S_IWUSR >> 3)
#endif
#ifndef S_IXGRP
#define S_IXGRP (S_IXUSR >> 3)
#endif
#ifndef S_IROTH
#define S_IROTH (S_IRGRP >> 3)
#endif
#ifndef S_IWOTH
#define S_IWOTH (S_IWGRP >> 3)
#endif
#ifndef S_IXOTH
#define S_IXOTH (S_IXGRP >> 3)
#endif
#ifndef S_IRWXU
#define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR)
#endif
#ifndef S_IRWXG
#define S_IRWXG (S_IRWXU >> 3)
#endif
#ifndef S_IRWXO
#define S_IRWXO (S_IRWXG >> 3)
#endif

#define access _access
#define chdir _chdir
Expand Down
Loading