mirror of
https://github.com/ocornut/imgui.git
synced 2025-09-20 10:18:26 +00:00
Backends: GLFW: fixed build for Emscripten which doesn't expose glfw3native.h.
Amend 10d0162
This commit is contained in:
@@ -110,10 +110,12 @@
|
|||||||
#ifndef GLFW_EXPOSE_NATIVE_WIN32 // for glfwGetWin32Window()
|
#ifndef GLFW_EXPOSE_NATIVE_WIN32 // for glfwGetWin32Window()
|
||||||
#define GLFW_EXPOSE_NATIVE_WIN32
|
#define GLFW_EXPOSE_NATIVE_WIN32
|
||||||
#endif
|
#endif
|
||||||
|
#include <GLFW/glfw3native.h>
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#ifndef GLFW_EXPOSE_NATIVE_COCOA // for glfwGetCocoaWindow()
|
#ifndef GLFW_EXPOSE_NATIVE_COCOA // for glfwGetCocoaWindow()
|
||||||
#define GLFW_EXPOSE_NATIVE_COCOA
|
#define GLFW_EXPOSE_NATIVE_COCOA
|
||||||
#endif
|
#endif
|
||||||
|
#include <GLFW/glfw3native.h>
|
||||||
#elif !defined(__EMSCRIPTEN__)
|
#elif !defined(__EMSCRIPTEN__)
|
||||||
#ifndef GLFW_EXPOSE_NATIVE_X11 // for glfwGetX11Window() on Freedesktop (Linux, BSD, etc.)
|
#ifndef GLFW_EXPOSE_NATIVE_X11 // for glfwGetX11Window() on Freedesktop (Linux, BSD, etc.)
|
||||||
#define GLFW_EXPOSE_NATIVE_X11
|
#define GLFW_EXPOSE_NATIVE_X11
|
||||||
@@ -121,8 +123,8 @@
|
|||||||
#ifndef GLFW_EXPOSE_NATIVE_WAYLAND
|
#ifndef GLFW_EXPOSE_NATIVE_WAYLAND
|
||||||
#define GLFW_EXPOSE_NATIVE_WAYLAND
|
#define GLFW_EXPOSE_NATIVE_WAYLAND
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#include <GLFW/glfw3native.h>
|
#include <GLFW/glfw3native.h>
|
||||||
|
#endif
|
||||||
#undef Status // X11 headers are leaking this.
|
#undef Status // X11 headers are leaking this.
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <unistd.h> // for usleep()
|
#include <unistd.h> // for usleep()
|
||||||
|
Reference in New Issue
Block a user