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

Windows: Remove MSVC define redundant with _MSC_VER #82304

Merged

Conversation

akien-mga
Copy link
Member

Copy link
Member

@bruvzg bruvzg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's alos used in

#if defined(DEBUG_ENABLED) && defined(MSVC)

@akien-mga akien-mga force-pushed the windows-remove-redundant-MSVC-define branch from 238e9e3 to cf8e4a8 Compare September 25, 2023 13:17
@akien-mga
Copy link
Member Author

Indeed, thanks. Just noticed that one too.

@@ -44,7 +44,7 @@
#include <unistd.h>
#endif

#ifdef MSVC
#ifdef _MSC_VER
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if that isn't dead code btw. In what condition would we build this with MSVC since it's under UNIX_ENABLED?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed all that code, which seemed partially copied from FileAccessWindows.

Cleanup unused MSVC code in FileAccessUnix.
@akien-mga akien-mga force-pushed the windows-remove-redundant-MSVC-define branch from cf8e4a8 to 814ab59 Compare September 26, 2023 09:11
@akien-mga akien-mga merged commit a4bca12 into godotengine:master Sep 26, 2023
15 checks passed
@akien-mga akien-mga deleted the windows-remove-redundant-MSVC-define branch September 26, 2023 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants