Backends: GLFW: Add define guards for glfw native defines. (#7536)

features/potocpav-newer-lines-2
Lukas Lipp ago%!(EXTRA string=1 year) committed by GitHub
parent 913151caa8
commit a60387a3c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      backends/imgui_impl_glfw.cpp

@ -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…
Cancel
Save