Skip to content

Conversation

wmamrak
Copy link

@wmamrak wmamrak commented Oct 1, 2025

Build systems often pass /DWIN32_LEAN_AND_MEAN to the compiler. Several headers also define this macro unconditionally, which causes C4005 (macro redefinition) warnings in the build log.

This commit wraps the definitions in #ifndef guards to resolve the warnings.

Build systems often pass /DWIN32_LEAN_AND_MEAN to the compiler. Several headers also define this macro unconditionally, which causes C4005 (macro redefinition) warnings in the build log.

This commit wraps the definitions in #ifndef guards to resolve the warnings.
Copy link
Member

@bukka bukka left a comment

Choose a reason for hiding this comment

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

It looks reasonable, just minor NIT.

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