-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
imgui_impl_opengl3 macro redefinitions using GLAD, GLFW, OPENGL #5642
Comments
For future reference, build issues should be opened as GitHub Discussions.
Generally speaking, you should not include As you've found though, if you're doing a unity build you can define
Not sure why you're getting those warnings unless you modified imgui/backends/imgui_impl_opengl3.cpp Lines 88 to 90 in edcd5b1
The "secure" variants of those functions are Microsoft-specific. Dear ImGui is cross-platform so we can't use them. |
If the standard headers are included before the define you’d get the warning, therefore it makes sense they would get the warnings on a unity/jumbo build.
|
Oh right, that'd do it too 😅 |
I have added extra comments in the header of this file, hoping it'd help people find the issue. |
Hi,
I have a lot of macros redefined mainly coming from #include "imgui_impl_opengl3.h" and "imgui_impl_opengl3.cpp"
I am using GLAD, GLFW, OPENGL, and recent IMGUI. How can I avoid these redefinitions?
After including this #define IMGUI_IMPL_OPENGL_LOADER_CUSTOM
I get 4 unsafe warnings, maybe I am to picky but I would like to resolve those:
The text was updated successfully, but these errors were encountered: