G_LOG_DOMAIN, GST_CAT_DEFAULT, vc8 (vs2005)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

G_LOG_DOMAIN, GST_CAT_DEFAULT, vc8 (vs2005)

Julien Isorce
Hi,

Some news about the problem I was talking on IRC yesterday.
About G_LOG_DOMAIN (  with vc8  )  which was always set to 0 (same about GST_CAT_DEFAULT) and so I could not use severals domains or categories.

After some investigations it seems that since 11-Mar-2008, the file glibconfig.h introduces:
/* varargs macros available since msvc8 (vs2005) */
#  if _MSC_VER >= 1400
#    define G_HAVE_ISO_VARARGS 1
#   endif

Ok so then I have upgraded my win32 glib dev package and then I can use several G_LOG_DOMAINs. So that's cool.

But it caused some "error C2065: '__func__' : undeclared identifier" for GST_DEBUGs.
So I have added:  #define __func__ __FUNCTION__ in glibconfig.h:

/* varargs macros available since msvc8 (vs2005) */
#  if _MSC_VER >= 1400
#    define G_HAVE_ISO_VARARGS 1
#    define __func__ __FUNCTION__
#   endif

Then I can also use several gst custom categories. ( Waw, I could not,  with vc8,  for a long time)
But I am not sure to define __func__ as __FUNCTION__ in the best place (glibconfig.h).
And so I would like to know how the gstreamer developpers do on win32 with vc8 ?

Sincerely

Julien

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel