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

Prevent NEAR and FAR macro definitions from leaking on Windows platforms #1142

Merged
merged 1 commit into from
Jul 10, 2019

Conversation

PeterTh
Copy link
Contributor

@PeterTh PeterTh commented Jul 10, 2019

We recently encountered an issue in a project which has NEAR and FAR variables (constexpr in some namespace), after including spdlog.

Turns out that including windows.h leaks those, and that happened transitively through spdlog.

Now obviously this really is more of a Windows issue, but I think it would be convenient - especially for multi-platform users of spdlog - to prevent leakage of these symbols (with the same reasoning as e.g. for defining NOMINMAX).

The required change is rather trivial.

@gabime gabime merged commit e0d85e6 into gabime:v1.x Jul 10, 2019
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.

2 participants