mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-06 22:15:07 +00:00
Backends: GLFW: Add define guards for glfw native defines. (#7536)
This commit is contained in:
parent
913151caa8
commit
a60387a3c2
1 changed files with 4 additions and 0 deletions
|
@ -85,11 +85,15 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
#undef APIENTRY
|
||||
#ifndef GLFW_EXPOSE_NATIVE_WIN32
|
||||
#define GLFW_EXPOSE_NATIVE_WIN32
|
||||
#endif
|
||||
#include <GLFW/glfw3native.h> // for glfwGetWin32Window()
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
#ifndef GLFW_EXPOSE_NATIVE_COCOA
|
||||
#define GLFW_EXPOSE_NATIVE_COCOA
|
||||
#endif
|
||||
#include <GLFW/glfw3native.h> // for glfwGetCocoaWindow()
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue