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:
Nirbheek Chauhan 2016-10-27 07:30:19 +05:30
parent 86e75e5c90
commit d5dba89fc0

View file

@ -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