Skip to content

[C++] Fix Windows min/max macro collision - #3491

Merged
parrt merged 1 commit into
antlr:masterfrom
jcking:cpp-guid-build
Jan 23, 2022
Merged

parrt merged 1 commit into
antlr:masterfrom
jcking:cpp-guid-build

Conversation

@jcking

@jcking jcking commented Jan 14, 2022

Copy link
Copy Markdown
Collaborator

Set WIN32_LEAN_AND_MEAN and NOMINMAX when including a Windows API related header in support/Guid.cpp. This resolves #3489. Additionally I updated the macros to be prefixed with ANTLR4CPP_ which is best practice for public headers.

@jcking

jcking commented Jan 14, 2022

Copy link
Copy Markdown
Collaborator Author

@mike-lischke

Comment thread runtime/Cpp/runtime/src/support/Guid.h Resolved

@mike-lischke mike-lischke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@parrt This patch can be merged.

@parrt parrt added this to the 4.10 milestone Jan 23, 2022
@parrt
parrt merged commit 0782e21 into antlr:master Jan 23, 2022
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.

[Cpp Runtime] MSVC: std::min in Guid.cpp needs NOMINMAX macro for compilation

3 participants