summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--ChangeLog.pre-2-1010
-rw-r--r--ChangeLog.pre-2-810
-rw-r--r--gdk/win32/gdkselection-win32.c4
-rw-r--r--gtk/updateiconcache.c6
5 files changed, 39 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c6123ed68..85a391580 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
+
+ Fix #300218:
+
+ * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
+ C99ism.
+
+ * gtk/updateiconcache.c: Guard inclusion of unistd.h and
+ utime.h.
+
2005-04-11 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version.
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index c6123ed68..85a391580 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,13 @@
+2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
+
+ Fix #300218:
+
+ * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
+ C99ism.
+
+ * gtk/updateiconcache.c: Guard inclusion of unistd.h and
+ utime.h.
+
2005-04-11 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version.
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index c6123ed68..85a391580 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,13 @@
+2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
+
+ Fix #300218:
+
+ * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
+ C99ism.
+
+ * gtk/updateiconcache.c: Guard inclusion of unistd.h and
+ utime.h.
+
2005-04-11 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version.
diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c
index c8c0d6e9d..e0d5c00c7 100644
--- a/gdk/win32/gdkselection-win32.c
+++ b/gdk/win32/gdkselection-win32.c
@@ -383,12 +383,14 @@ gdk_selection_convert (GdkWindow *requestor,
if (GetClipboardFormatName (fmt, sFormat, 80) > 0 &&
strcmp (sFormat, "UTF8_STRING"))
{
+ GdkAtom atom;
+
if (!has_bmp &&
(!strcmp (sFormat, "image/bmp") ||
!strcmp (sFormat, "image/x-bmp") ||
!strcmp (sFormat, "image/x-MS-bmp")))
has_bmp = TRUE;
- GdkAtom atom = gdk_atom_intern (sFormat, FALSE);
+ atom = gdk_atom_intern (sFormat, FALSE);
data[i++] = atom;
}
}
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c
index 1aac164ba..57e6f9799 100644
--- a/gtk/updateiconcache.c
+++ b/gtk/updateiconcache.c
@@ -24,9 +24,15 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <errno.h>
+#ifdef _MSC_VER
+#include <sys/utime.h>
+#else
#include <utime.h>
+#endif
#include <glib.h>
#include <glib/gstdio.h>