소스 검색

Backends: GLFW: fixed imgui_impl_glfw.cpp being affected by X headers '#define Status' leak since 6b2cdf2. (#8884)

ocornut 1 주 전
부모
커밋
a4cd45f44c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      backends/imgui_impl_glfw.cpp

+ 1 - 0
backends/imgui_impl_glfw.cpp

@@ -137,6 +137,7 @@
 #define GLFW_EXPOSE_NATIVE_WAYLAND
 #endif
 #include <GLFW/glfw3native.h>   // for getting the X11/Wayland window
+#undef Status                   // X11 headers are leaking this.
 #endif
 #ifndef _WIN32
 #include <unistd.h>             // for usleep()