Ver Fonte

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 há 1 ano atrás
pai
commit
15b771759d
1 ficheiros alterados com 2 adições e 3 exclusões
  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
 // Please use C89 style variable declarations in this file because VS 2010
 //========================================================================
 //========================================================================
 
 
+#include "internal.h"
+
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 
 
-#include "internal.h"
-
-
 static void makeContextCurrentOSMesa(_GLFWwindow* window)
 static void makeContextCurrentOSMesa(_GLFWwindow* window)
 {
 {
     if (window)
     if (window)