GNOME Bugzilla – Bug 359375
variable 'interface' results in syntax error with MingW
Last modified: 2006-10-16 14:57:18 UTC
I'm compiling gst-python-0.10.5 using GCC 3.4.2 under MingW. My compiler is giving away a strange syntax error in gst/gst.c around the line 6285 [inside the function _wrap_gst_bin_get_by_interface()] and the line 6356 [inside the function _wrap_gst_bin_iterate_all_by_interface()]. It seems that it is getting confused by the local variable 'interface' and probably gcc is assuming it is some keyword. Changing the local variable name to '_interface' solves the syntax error problems. (I'm using the flag -DGST_DISABLE_GST_DEBUG, in case it matters for this bug)
Created attachment 74580 [details] [review] patch
Committed: 2006-10-16 Tim-Philipp Müller <tim at centricular dot net> * gst/gst.defs: Don't use 'interface' as variable name, MingW doesn't like that (fixes #359375).