瀏覽代碼

Fixed bad macro logic

Diogo Diniz 1 月之前
父節點
當前提交
eae1296b08
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/platforms/rcore_desktop_glfw.c

+ 1 - 1
src/platforms/rcore_desktop_glfw.c

@@ -751,7 +751,7 @@ void *GetWindowHandle(void)
         #else
             return glfwGetWaylandWindow(platform.handle);
         #endif
-    #else if defined(_GLFW_X11)
+    #elif defined(_GLFW_X11)
         // Store the window handle localy and return a pointer to the variable instead
         // Reasoning detailed in the declaration of X11WindowHandle
         X11WindowHandle = glfwGetX11Window(platform.handle);