GNOME Bugzilla – Bug 688510
d3dvideosink: "DECLARE_INTERFACE_IID_" redefined compiler warning
Last modified: 2012-11-20 11:11:38 UTC
Compiling with -WError switch fails to build for windows cross compile. Using i686-w64-mingw32 toolchain. Output from make: Making all in sys make[2]: Entering directory `/home/src/git/gst/gst-plugins-bad/sys' make -C d3dvideosink make[3]: Entering directory `/home/src/git/gst/gst-plugins-bad/sys/d3dvideosink' CC libgstd3dvideosink_la-d3dvideosink.lo In file included from d3dvideosink.c:25:0: d3dvideosink.h:39:0: error: "DECLARE_INTERFACE_IID_" redefined [-Werror] /usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/objbase.h:70:0: note: this is the location of the previous definition cc1: all warnings being treated as errors make[3]: *** [libgstd3dvideosink_la-d3dvideosink.lo] Error 1 make[3]: Leaving directory `/home/src/git/gst/gst-plugins-bad/sys/d3dvideosink' make[2]: *** [d3dvideosink] Error 2 make[2]: Leaving directory `/home/src/git/gst/gst-plugins-bad/sys' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/src/git/gst/gst-plugins-bad' make: *** [all] Error 2
Created attachment 229463 [details] [review] d3dvideosink: fix redefinition of DECLARE_INTERFACE_IID_ Newer mingw has this macro already defined.
Thanks! commit 689cef0fc7a3504b7756101ec8ee28b0ba6960e8 Author: Andoni Morales Alastruey <ylatuya@gmail.com> Date: Tue Nov 20 12:05:17 2012 +0100 d3dvideosink: fix redefinition of DECLARE_INTERFACE_IID https://bugzilla.gnome.org/show_bug.cgi?id=688510