gst/glib-compat-private.h: Add compatibility macro for g_intern_string() for
[platform/upstream/gstreamer.git] / gst / glib-compat-private.h
1 /*
2  * glib-compat.c
3  * Functions copied from glib 2.10
4  *
5  * Copyright 2005 David Schleef <ds@schleef.org>
6  */
7
8 #include "gst_private.h" /* for g_warning */
9 #include <glib.h>
10
11 G_BEGIN_DECLS
12
13 /* copies */
14
15 /* adaptations */
16
17 /* FIXME: remove once we depend on GLib 2.10 */
18 #if (!GLIB_CHECK_VERSION (2, 10, 0))
19 #define g_intern_string(s) g_quark_to_string(g_quark_from_string(s))
20 #endif
21
22 G_END_DECLS