+2005-04-19 Tor Lillqvist <tml@novell.com>
+
+ * glib/gutils.h: Minor comment improvement.
+
+2005-04-18 Tor Lillqvist <tml@novell.com>
+
+ * glib/gfileutils.c: No <sys/wait.h> on Win32. Definition of
+ save_errno was missing in one place.
+
Sat Apr 16 20:15:44 2005 Soeren Sandmann <sandmann@redhat.com>
* glib/gfileutils.c (g_file_replace): Save the errno in various
+2005-04-19 Tor Lillqvist <tml@novell.com>
+
+ * glib/gutils.h: Minor comment improvement.
+
+2005-04-18 Tor Lillqvist <tml@novell.com>
+
+ * glib/gfileutils.c: No <sys/wait.h> on Win32. Definition of
+ save_errno was missing in one place.
+
Sat Apr 16 20:15:44 2005 Soeren Sandmann <sandmann@redhat.com>
* glib/gfileutils.c (g_file_replace): Save the errno in various
+2005-04-19 Tor Lillqvist <tml@novell.com>
+
+ * glib/gutils.h: Minor comment improvement.
+
+2005-04-18 Tor Lillqvist <tml@novell.com>
+
+ * glib/gfileutils.c: No <sys/wait.h> on Win32. Definition of
+ save_errno was missing in one place.
+
Sat Apr 16 20:15:44 2005 Soeren Sandmann <sandmann@redhat.com>
* glib/gfileutils.c (g_file_replace): Save the errno in various
+2005-04-19 Tor Lillqvist <tml@novell.com>
+
+ * glib/gutils.h: Minor comment improvement.
+
+2005-04-18 Tor Lillqvist <tml@novell.com>
+
+ * glib/gfileutils.c: No <sys/wait.h> on Win32. Definition of
+ save_errno was missing in one place.
+
Sat Apr 16 20:15:44 2005 Soeren Sandmann <sandmann@redhat.com>
* glib/gfileutils.c (g_file_replace): Save the errno in various
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
+#ifndef G_OS_WIN32
#include <sys/wait.h>
+#endif
#include <fcntl.h>
#include <stdlib.h>
{
gchar *display_filename = g_filename_display_name (filename);
- save_errno = errno;
+ int save_errno = errno;
g_set_error (error,
G_FILE_ERROR,
#ifdef G_OS_WIN32
-/* On native Win32, directory separator is the backslash, and search path
- * separator is the semicolon.
+/* On Win32, the canonical directory separator is the backslash, and
+ * the search path separator is the semicolon. Note that also the
+ * (forward) slash works as directory separator.
*/
#define G_DIR_SEPARATOR '\\'
#define G_DIR_SEPARATOR_S "\\"
static G_CONST_RETURN gchar * G_CONST_RETURN *
g_win32_get_system_data_dirs (void)
{
- return g_win32_get_system_data_dirs_for_module (&g_win32_get_system_data_dirs);
+ return g_win32_get_system_data_dirs_for_module ((gconstpointer) &g_win32_get_system_data_dirs);
}
#define g_get_system_data_dirs g_win32_get_system_data_dirs
#endif