Minor comment improvement.
authorTor Lillqvist <tml@novell.com>
Tue, 19 Apr 2005 08:08:36 +0000 (08:08 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Tue, 19 Apr 2005 08:08:36 +0000 (08:08 +0000)
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.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
glib/gfileutils.c
glib/gutils.h

index 610b1f9..cdaedeb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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
index 610b1f9..cdaedeb 100644 (file)
@@ -1,3 +1,12 @@
+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
index 610b1f9..cdaedeb 100644 (file)
@@ -1,3 +1,12 @@
+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
index 610b1f9..cdaedeb 100644 (file)
@@ -1,3 +1,12 @@
+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
index b3c1565..cf21c06 100644 (file)
@@ -33,7 +33,9 @@
 #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>
 
@@ -1160,7 +1162,7 @@ g_file_replace (const gchar *filename,
        {
           gchar *display_filename = g_filename_display_name (filename);
 
-         save_errno = errno;
+         int save_errno = errno;
          
          g_set_error (error,
                       G_FILE_ERROR,
index 020ccd3..4bc8528 100644 (file)
@@ -34,8 +34,9 @@ G_BEGIN_DECLS
 
 #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 "\\"
@@ -131,7 +132,7 @@ G_CONST_RETURN gchar* G_CONST_RETURN * g_win32_get_system_data_dirs_for_module (
 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