mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
gstgl: Porting fixes for MSVC with Meson
GL/gl.h needs windows.h on MSVC WINAPI should not be used with MSVC. It also causes a build error.
This commit is contained in:
parent
86e75e5c90
commit
d5dba89fc0
1 changed files with 4 additions and 1 deletions
|
@ -62,6 +62,9 @@
|
|||
# include <OpenGL/gl3.h>
|
||||
# endif
|
||||
# else
|
||||
# if defined(_MSC_VER)
|
||||
# include <windows.h>
|
||||
# endif
|
||||
# include <GL/gl.h>
|
||||
# if defined(__WIN32__) || defined(_WIN32)
|
||||
# include <GL/glext.h>
|
||||
|
@ -73,7 +76,7 @@
|
|||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#ifdef WINAPI
|
||||
#if defined(WINAPI) && !defined(_MSC_VER)
|
||||
#define GSTGLAPI WINAPI
|
||||
#else
|
||||
#define GSTGLAPI
|
||||
|
|
Loading…
Reference in a new issue