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 STL Algorithm Header Errors When Included with Platform.h #148

Merged
merged 3 commits into from
May 5, 2022

Conversation

edgarbarney
Copy link
Contributor

"clamp" macro of Platform.h conflicts with "std::clamp" of the STL algorithm header. So #include <algorithm> forces Platform.h included after itself. This commit fixes the issue

@edgarbarney
Copy link
Contributor Author

This was already fixed in the Unified SDK with SamVanheer/halflife-unified-sdk@7683d59 but not in this repo.

"clamp" macro of Platform.h conflicts with "std::clamp" of the STL algorithm header. So `#include <algorithm>` forces Platform.h included after itself. This commit fixes the issue.
@SamVanheer SamVanheer merged commit 097263f into twhl-community:master May 5, 2022
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.

None yet

2 participants