projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86e75e5
)
gstgl: Porting fixes for MSVC with Meson
author
Nirbheek Chauhan
<nirbheek@centricular.com>
Thu, 27 Oct 2016 02:00:19 +0000
(07:30 +0530)
committer
Nirbheek Chauhan
<nirbheek@centricular.com>
Thu, 27 Oct 2016 17:36:25 +0000
(23:06 +0530)
GL/gl.h needs windows.h on MSVC
WINAPI should not be used with MSVC. It also causes a build error.
gst-libs/gst/gl/gstglapi.h
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglapi.h
b/gst-libs/gst/gl/gstglapi.h
index 93b60b792bc485c03f19747a3668258b3971573c..43e6d4a6885406614b33524e44d8a0b7567df0bf 100644
(file)
--- a/
gst-libs/gst/gl/gstglapi.h
+++ b/
gst-libs/gst/gl/gstglapi.h
@@
-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
-#if
def WINAPI
+#if
defined(WINAPI) && !defined(_MSC_VER)
#define GSTGLAPI WINAPI
#else
#define GSTGLAPI