GNOME Bugzilla – Bug 743041
gstglapi.h not compiling with MSVC (Visual Studio 2013)
Last modified: 2015-01-16 23:59:39 UTC
On line 82 in the gstglapi.h file: # if __WIN32__ || _WIN32 causes an Error 1 error C1017: invalid integer constant expression d:\sdks\gstreamer\1.0\x86\include\gstreamer-1.0\gst\gl\gstglapi.h 82 error. __tim suggested fixing this problem thusly, which seems to work: # if defined(__WIN32__) || defined(_WIN32) So... Yeah, maybe do that? Hopefully this doesn't cause other headaches.
*** Bug 743043 has been marked as a duplicate of this bug. ***
Can you attach patches here for this change, and the one you mention in the other bug? You can create them by locally committing with GIT, and then using "git format-patch -1" (or how many commits you want to export as patches).
Created attachment 294706 [details] [review] Proposed patch - Hopefully functional :S
Created attachment 294707 [details] [review] Proposed patch v2 - Now Unified!
commit 174ea7af7b5bdd512574a16d9725030e5e783136 Author: Lasse Laursen <lasse@lasselaursen.com> Date: Sat Jan 17 10:06:40 2015 +1100 glapi: fix compilation with latest MSVC https://bugzilla.gnome.org/show_bug.cgi?id=743041 and 1.4 c3ca2f04fe5131362f46ae3fdd12ebe5b3b55773