[gtk+] gtk/gtkwin32theme.c: Remove C99ism



commit f32d8be6a57a6313ca6368f82436ad1af286f105
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Mar 20 14:10:14 2012 +0800

    gtk/gtkwin32theme.c: Remove C99ism

 gtk/gtkwin32theme.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwin32theme.c b/gtk/gtkwin32theme.c
index 90a6a66..6f4df72 100644
--- a/gtk/gtkwin32theme.c
+++ b/gtk/gtkwin32theme.c
@@ -214,6 +214,7 @@ _gtk_win32_theme_part_create_surface (HTHEME theme,
   cairo_t *cr;
   int x_offs;
   int y_offs;
+  int i, j;
 #ifdef G_OS_WIN32
   gboolean has_alpha;
   HDC hdc;
@@ -274,9 +275,9 @@ _gtk_win32_theme_part_create_surface (HTHEME theme,
       guint32 *data = (guint32 *)cairo_image_surface_get_data (img);
       GdiFlush ();
 
-      for (int i = 0; i < width; i++)
+      for (i = 0; i < width; i++)
 	{
-	  for (int j = 0; j < height; j++)
+	  for (j = 0; j < height; j++)
 	    {
 	      if (data[i+j*width] != 0)
 		data[i+j*width] |= 0xff000000;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]