mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
584cc93574
Original commit message from CVS: * gst/glib-compat.c: (g_mkdir_with_parents), (g_mkdir), (g_stat): * gst/glib-compat.h: Add some functions that are in newer versions of glib than we care to require. * gst/gstregistryxml.c: Use them.
25 lines
471 B
C
25 lines
471 B
C
/*
|
|
* glib-compat.c
|
|
* Functions copied from glib 2.6 and 2.8
|
|
*
|
|
* Copyright 2005 David Schleef <ds@schleef.org>
|
|
*/
|
|
|
|
#include <glib.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#if !GLIB_CHECK_VERSION (2, 8, 0)
|
|
int g_mkdir_with_parents (const gchar *pathname, int mode);
|
|
#endif
|
|
|
|
#if !GLIB_CHECK_VERSION (2, 6, 0)
|
|
int g_mkdir (const gchar *filename, int mode);
|
|
#endif
|
|
|
|
#if !GLIB_CHECK_VERSION (2, 6, 0)
|
|
int g_stat (const gchar *filename, struct stat *buf);
|
|
#endif
|
|
|
|
G_END_DECLS
|
|
|