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

Add define guards for the glfw backend #7536

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

fknfilewalker
Copy link
Contributor

@fknfilewalker fknfilewalker commented Apr 28, 2024

This PR adds define guards for the glfw backend, namely GLFW_EXPOSE_NATIVE_COCOA and GLFW_EXPOSE_NATIVE_WIN32. This removes redefinition warnings if the glfw backend source file is include in a target where these defines where already defined.

Add define guards for glfw native defines
@fknfilewalker fknfilewalker changed the title Update imgui_impl_glfw.cpp Add define guards for the glfw backend Apr 28, 2024
@ocornut ocornut merged commit a60387a into ocornut:master Apr 29, 2024
@ocornut
Copy link
Owner

ocornut commented Apr 29, 2024

Merged, Thank you!

Redefinition warnings for same define value are a bit annoying to be honest..

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.

2 participants