[gtk+] win32: Move variable declarations into #if block



commit bd400b09576afba512b94a6f09d65b73f64bdb45
Author: Benjamin Otte <otte redhat com>
Date:   Sat Apr 7 12:55:30 2012 +0200

    win32: Move variable declarations into #if block

 gtk/gtkwin32theme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwin32theme.c b/gtk/gtkwin32theme.c
index 87bcff5..0f385f9 100644
--- a/gtk/gtkwin32theme.c
+++ b/gtk/gtkwin32theme.c
@@ -215,7 +215,6 @@ _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,6 +273,7 @@ _gtk_win32_theme_part_create_surface (HTHEME theme,
     {
       cairo_surface_t *img = cairo_win32_surface_get_image (surface);
       guint32 *data = (guint32 *)cairo_image_surface_get_data (img);
+      int i, j;
       GdiFlush ();
 
       for (i = 0; i < width; i++)



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