[gstreamer-bugs] [Bug 612961] dvdreadsrc.c compile error with MSVC, missing GST_FUNCTION

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Mar 22 08:13:53 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=612961
  GStreamer | gst-plugins-ugly | 0.10.14

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #156303|none                        |rejected
             status|                            |

--- Comment #7 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2010-03-22 15:13:50 UTC ---
(From update of attachment 156303)
Any more info on why it works in -base but not in -ugly?

We would need to remove AG_GST_CHECK_FUNCTION from configure.ac to create a
config.h without this undef.

However, I still don't really understand what's going on here.

dvdreadsrc.c includes config.h first thing. this undefines GST_FUNCTION, which
shouldn't be a problem.

Now, at some point via #include <gst/gst.h> it includes gstinfo.h which has
this blurb:

#ifndef GST_FUNCTION
#if defined (__GNUC__) || (defined (_MSC_VER) && _MSC_VER >= 1300)
#  define GST_FUNCTION     ((const char*) (__FUNCTION__))
#elif defined (__STDC__) && defined (__STDC_VERSION__) && __STDC_VERSION__ >=
199901L
#  define GST_FUNCTION     ((const char*) (__func__))
#else
#  define GST_FUNCTION     ((const char*) ("???"))
#endif
#endif

which should define GST_FUNCTION to *something* in any case.

Could you look into it some more by any chance?

-- 
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