[vlc-commits] [Git][videolan/vlc][3.0.x] configure: include glew.h before wglew.h

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Dec 8 18:01:58 UTC 2025



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
174e45e3 by Steve Lhomme at 2025-12-08T18:37:06+01:00
configure: include glew.h before wglew.h

In recent wglew.h it relies on the DLL export mode defined in glew.h

(cherry picked from commit 1f86df44e3b6e86f3af35fbb388793f09d0d7553) (edited)
edited:
- the 3.0 converter is not in direct3d9.c

- - - - -


4 changed files:

- configure.ac
- modules/video_output/opengl/converter.h
- modules/video_output/win32/glwin32.c
- modules/video_output/win32/wgl.c


Changes:

=====================================
configure.ac
=====================================
@@ -3469,12 +3469,15 @@ AS_IF([test "${enable_directx}" != "no"], [
   ])
 
   dnl OpenGL
-  AC_CHECK_HEADERS(GL/wglew.h, [
-    VLC_ADD_PLUGIN([glwin32 wgl])
-  ],, [
-    #include <windows.h>
-    #include <GL/gl.h>
-  ])
+  AC_CHECK_HEADERS([GL/glew.h], [
+    AC_CHECK_HEADERS(GL/wglew.h, [
+        VLC_ADD_PLUGIN([glwin32 wgl])
+      ],, [
+        #include <windows.h>
+        #include <GL/glew.h>
+      ])],, [
+      #include <windows.h>
+   ])
 
   dnl Direct3D11
   AC_CHECK_HEADERS(d3d11.h, [


=====================================
modules/video_output/opengl/converter.h
=====================================
@@ -45,7 +45,7 @@
 #  include <GLES2/gl2.h>
 #  include <GLES2/gl2ext.h>
 # else
-#  ifdef _WIN32
+#  ifdef HAVE_GL_WGLEW_H
 #   include <GL/glew.h>
 #  endif
 #  include <GL/gl.h>


=====================================
modules/video_output/win32/glwin32.c
=====================================
@@ -35,6 +35,7 @@
 
 #define GLEW_STATIC
 #include "../opengl/vout_helper.h"
+#include <GL/glew.h>
 #include <GL/wglew.h>
 
 #include "common.h"


=====================================
modules/video_output/win32/wgl.c
=====================================
@@ -29,6 +29,7 @@
 #include <vlc_opengl.h>
 
 #include "../opengl/vout_helper.h"
+#include <GL/glew.h>
 #include <GL/wglew.h>
 
 #include "common.h"



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/174e45e3beeafbb0570c8c47f01f9b28eb6ea45c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/174e45e3beeafbb0570c8c47f01f9b28eb6ea45c
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list