Skip to content
Snippets Groups Projects
Commit d5dba89f authored by Nirbheek Chauhan's avatar Nirbheek Chauhan :ant:
Browse files

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.
parent 86e75e5c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment