浏览代码

OSMesa: Fix headers included before shared header

The shared header, internal.h, must be the first header included in
every compilation unit of GLFW.

(cherry picked from commit 291f4d89cd3019b5d0be4fd5d97699036d1b0a67)
Camilla Löwy 1 年之前
父节点
当前提交
15b771759d
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/osmesa_context.c

+ 2 - 3
src/osmesa_context.c

@@ -27,13 +27,12 @@
 // Please use C89 style variable declarations in this file because VS 2010
 //========================================================================
 
+#include "internal.h"
+
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>
 
-#include "internal.h"
-
-
 static void makeContextCurrentOSMesa(_GLFWwindow* window)
 {
     if (window)