glapi: fix compilation with latest MSVC
authorLasse Laursen <lasse@lasselaursen.com>
Fri, 16 Jan 2015 23:06:40 +0000 (10:06 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:52 +0000 (19:31 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=743041

gst-libs/gst/gl/gstglapi.h

index d3cc522..c260590 100644 (file)
@@ -76,7 +76,7 @@
 #  endif
 # else
 #  include <GL/gl.h>
-#  if __WIN32__ || _WIN32
+#  if defined(__WIN32__) || defined(_WIN32)
 #   include <GL/glext.h>
 #  endif
 # endif
@@ -123,7 +123,7 @@ typedef enum
 #define GST_GL_EXT_BEGIN(name, gl_availability, min_gl, maj_gl, gles_maj, \
     gles_min, ext_suf, ext_name)
 #define GST_GL_EXT_FUNCTION(ret, name, args) \
-  ret GSTGLAPI (*name) args;
+  ret (GSTGLAPI *name) args;
 #define GST_GL_EXT_END()
 
 typedef struct _GstGLFuncs