[Bug 743043] New: gstglapi.h not compiling with MSVC (Visual Studio 2013) - Part 2
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Jan 16 06:40:25 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=743043
GStreamer | gst-plugins-bad | 1.4.5
Summary: gstglapi.h not compiling with MSVC (Visual Studio
2013) - Part 2
Classification: Platform
Product: GStreamer
Version: 1.4.5
OS/Version: Windows
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-bad
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: lasse at lasselaursen.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
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.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list