2005-09-15 01:10:52 +00:00
|
|
|
/*
|
|
|
|
* glib-compat.c
|
|
|
|
* Functions copied from glib 2.6 and 2.8
|
|
|
|
*
|
|
|
|
* Copyright 2005 David Schleef <ds@schleef.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <glib.h>
|
2005-09-15 01:38:33 +00:00
|
|
|
#if GLIB_CHECK_VERSION (2, 6, 0)
|
|
|
|
#include <glib/gstdio.h>
|
|
|
|
#endif
|
2005-09-15 01:10:52 +00:00
|
|
|
|
|
|
|
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)
|
2005-09-15 01:34:52 +00:00
|
|
|
struct stat;
|
|
|
|
|
2005-09-15 01:10:52 +00:00
|
|
|
int g_stat (const gchar *filename, struct stat *buf);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|