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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

micb25
Copy link

@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.

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

1 participant