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 "config.h"
|
|
|
|
|
|
|
|
#include <glib.h>
|
2005-09-15 01:26:42 +00:00
|
|
|
#include <glib/gstdio.h>
|
2005-09-15 01:10:52 +00:00
|
|
|
|
2005-09-15 01:20:22 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#include "glib-compat.h"
|
2005-11-21 18:03:22 +00:00
|
|
|
#include "glib-compat-private.h"
|
2005-09-15 01:20:22 +00:00
|
|
|
|
2005-09-15 01:10:52 +00:00
|
|
|
#include <sys/stat.h>
|
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
2005-09-15 01:34:52 +00:00
|
|
|
#include <sys/types.h>
|
2005-09-15 01:10:52 +00:00
|
|
|
|
|
|
|
#ifdef G_OS_WIN32
|
|
|
|
#include <windows.h>
|
|
|
|
#include <io.h>
|
|
|
|
#endif /* G_OS_WIN32 */
|