diff --git a/src/platform.h b/src/platform.h index 435674e5..67953331 100644 --- a/src/platform.h +++ b/src/platform.h @@ -208,6 +208,7 @@ #endif #if defined(_GLFW_WAYLAND) || defined(_GLFW_X11) + #include "posix_poll.h" #define GLFW_BUILD_POSIX_POLL #endif diff --git a/src/wl_platform.h b/src/wl_platform.h index c9d1c251..d03ba1da 100644 --- a/src/wl_platform.h +++ b/src/wl_platform.h @@ -42,8 +42,6 @@ typedef struct VkWaylandSurfaceCreateInfoKHR typedef VkResult (APIENTRY *PFN_vkCreateWaylandSurfaceKHR)(VkInstance,const VkWaylandSurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice,uint32_t,struct wl_display*); -#include "posix_poll.h" - typedef int (* PFN_wl_display_flush)(struct wl_display* display); typedef void (* PFN_wl_display_cancel_read)(struct wl_display* display); typedef int (* PFN_wl_display_dispatch_pending)(struct wl_display* display); diff --git a/src/x11_platform.h b/src/x11_platform.h index 1bfeaab4..36dfcce1 100644 --- a/src/x11_platform.h +++ b/src/x11_platform.h @@ -453,7 +453,6 @@ typedef VkResult (APIENTRY *PFN_vkCreateXcbSurfaceKHR)(VkInstance,const VkXcbSur typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice,uint32_t,xcb_connection_t*,xcb_visualid_t); #include "xkb_unicode.h" -#include "posix_poll.h" #define GLFW_X11_WINDOW_STATE _GLFWwindowX11 x11; #define GLFW_X11_LIBRARY_WINDOW_STATE _GLFWlibraryX11 x11;