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

fix preprocessor logic with HAVE_STAT #1

Open
wants to merge 1 commit into
base: DoT
Choose a base branch
from

Conversation

createyourpersonalaccount

The _WIN32 check is inside a preprocessor branch that has already
checked that _WIN32 is not defined.

On the other hand, if HAVE_STAT is not available, then the function
does not have an alternative method to check that a file exists. The
not-apple-not-windows branch should have stat() available, so this is
a very unlikely situation.

@createyourpersonalaccount createyourpersonalaccount changed the base branch from main to DoT January 4, 2025 06:06
The _WIN32 check is inside a preprocessor branch that has already
checked that _WIN32 is not defined.

On the other hand, if HAVE_STAT is not available, then the function
does not have an alternative method to check that a file exists. The
not-apple-not-windows branch should have stat() available, so this is
a very unlikely situation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant