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

Reintroduce header guards for IMGUI_DEFINE_MATH_OPERATORS to fix compiler warnings #546

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

micb25
Copy link
Contributor

@micb25 micb25 commented Dec 19, 2023

The commit 33c5a96 removed the definition for IMGUI_DEFINE_MATH_OPERATORS including a header guard from implot_internal.h and moved it into the unit files implot.cpp and implot_items.cpp but without a corresponding check whether IMGUI_DEFINE_MATH_OPERATORS was already defined.

When IMGUI_DEFINE_MATH_OPERATORS is set externally, e.g. via target compile definitions, this now leads to compiler warnings. The PR fixes these compiler warnings by reintroducing header guards for IMGUI_DEFINE_MATH_OPERATORS.

@ocornut ocornut merged commit 9be7915 into epezent:master Oct 29, 2024
@ocornut
Copy link
Collaborator

ocornut commented Oct 29, 2024

Merged, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants