GNOME Bugzilla – Bug 743043
gstglapi.h not compiling with MSVC (Visual Studio 2013) - Part 2
Last modified: 2015-01-16 15:08:42 UTC
In gstglapi.h, Line 128 is as follows: ret GSTGLAPI (*name) args; which in MSVC in Vs2013 causes the following intellisense error: 109 IntelliSense: a calling convention may not be followed by a nested declarator d:\SDKS\gstreamer\1.0\x86\include\gstreamer-1.0\gst\gl\glprototypes\base.h 68 As far as I can tell the issue has to do with how the compiler likes its convention of __stdcall. The MSVC way is to extend the paraentheses to include the call itself, thusly: ret (GSTGLAPI *name) args; Voila. Working in MSVC. Probably needs some more #define's around it to make sure it doesn't break something in other compilers.
Let's track that together with the other bug :) *** This bug has been marked as a duplicate of bug 743041 ***
There should be a macro that evaluates to __stdcall on Windows and somethnig else elsewhere already. GST_EXPORT from gstconfig.h looks like a candidate