1 /* 2 * glib-compat.c 3 * Functions copied from glib 2.6 and 2.8 4 * 5 * Copyright 2005 David Schleef <ds@schleef.org> 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Library General Public 9 * License as published by the Free Software Foundation; either 10 * version 2 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Library General Public License for more details. 16 * 17 * You should have received a copy of the GNU Library General Public 18 * License along with this library; if not, write to the 19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 20 * Boston, MA 02110-1301, USA. 21 */ 22 23 #include "config.h" 24 25 #include <glib.h> 26 #include <glib/gstdio.h> 27 28 #include <stdio.h> 29 #include <errno.h> 30 31 #include "glib-compat.h" 32 #include "glib-compat-private.h" 33 34 #include <sys/stat.h> 35 #ifdef HAVE_UNISTD_H 36 #include <unistd.h> 37 #endif 38 #include <sys/types.h> 39 40 #ifdef G_OS_WIN32 41 #define WIN32_LEAN_AND_MEAN 42 #include <windows.h> 43 #include <io.h> 44 #endif /* G_OS_WIN32 */ 45