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: conditionally define RENAME_* macros #2643

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

Austinpayne
Copy link
Contributor

When using -Xcc -Werror flags redefining macros results in a compilation error.

Motivation:

Fixes regression in #2628.

Modifications:

Check if RENAME_* macros are already defined before before defining for the musl case.

Result:

NIO now compiles when using -Werror.

Austinpayne and others added 2 commits February 8, 2024 18:32
When using `-Xcc -Werror` flags redefining macros results in a compilation
error. Instead we check if they are not defined before defining for the
musl case.

Fixes regression in apple#2628.
Copy link
Contributor

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Thank you!

@glbrntt glbrntt added the semver/patch No public API change. label Feb 9, 2024
@glbrntt glbrntt enabled auto-merge (squash) February 9, 2024 09:24
@glbrntt glbrntt merged commit 745c792 into apple:main Feb 9, 2024
8 of 10 checks passed
@Austinpayne Austinpayne deleted the fix/rename-werror branch February 9, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants