GNOME Bugzilla – Bug 391909
Fix compilation with MinGW
Last modified: 2007-01-05 13:41:55 UTC
gstinfo.h, gstconfig.h and gst_private.h use WIN32 variable to set which symbols must be exported on Windows platform (using __declspec, with a Microsoft compiler). MinGW also sets this variable, but must not use __declspec The attached patch fix that problem by using the variable _MSC_VER instead of WIN32.
Created attachment 79184 [details] [review] fix for compilation with mingw
*** Bug 392473 has been marked as a duplicate of this bug. ***
This fixes it for me as well, using MinGW
Fixed cross-compilation (linux->win32, using mingw32msvc) for me too.
Thanks! Hope this keeps things working with MSVC ... 2007-01-05 Tim-Philipp Müller <tim at centricular dot net> Patch by: Vincent Torri <vtorri at univ-evry dot fr> * gst/gst_private.h: * gst/gstconfig.h.in: * gst/gstinfo.h: On win32, all the __declspec stuff for symbol exporting is apparently only needed with MSVC, but doesn't work with MingW. Fixes compilation with MingW and #391909.