win32: Move variable definition to not cause gcc warning

It's only used on win32, so only define it there.
This commit is contained in:
Benjamin Otte 2016-02-21 04:55:55 +01:00
parent 00559e1b86
commit c2dd3c0d89

View File

@ -480,12 +480,11 @@ int
gtk_win32_theme_get_size (GtkWin32Theme *theme,
int id)
{
int size;
#ifdef G_OS_WIN32
if (use_xp_theme && GetThemeSysSize != NULL)
{
HTHEME htheme = gtk_win32_theme_get_htheme (theme);
int size;
/* If htheme is NULL it will just return the GetSystemMetrics value */
size = GetThemeSysSize (htheme, id);