From 5d4b86ba20cc07a2d71198dcd544856bdf937352 Mon Sep 17 00:00:00 2001 From: "Ivan, Wong Yat Cheung" Date: Mon, 11 Apr 2005 18:57:22 +0000 Subject: [PATCH] Fix #300218: 2005-04-11 Ivan, Wong Yat Cheung Fix #300218: * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix C99ism. * gtk/updateiconcache.c: Guard inclusion of unistd.h and utime.h. --- ChangeLog | 10 ++++++++++ ChangeLog.pre-2-10 | 10 ++++++++++ ChangeLog.pre-2-8 | 10 ++++++++++ gdk/win32/gdkselection-win32.c | 4 +++- gtk/updateiconcache.c | 6 ++++++ 5 files changed, 39 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c6123ed68c..85a3915807 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-04-11 Ivan, Wong Yat Cheung + + 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 * configure.in: Bump version. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index c6123ed68c..85a3915807 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,13 @@ +2005-04-11 Ivan, Wong Yat Cheung + + 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 * configure.in: Bump version. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index c6123ed68c..85a3915807 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,13 @@ +2005-04-11 Ivan, Wong Yat Cheung + + 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 * configure.in: Bump version. diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c index c8c0d6e9d1..e0d5c00c76 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 1aac164ba7..57e6f97996 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -24,9 +24,15 @@ #include #include #include +#ifdef HAVE_UNISTD_H #include +#endif #include +#ifdef _MSC_VER +#include +#else #include +#endif #include #include