Update gsettings utilities in GIO
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 7 Jun 2011 02:49:29 +0000 (10:49 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 7 Jun 2011 02:49:29 +0000 (10:49 +0800)
Avoid C99-style variable declaration

gio/glib-compile-schemas.c
gio/gsettings-tool.c

index 0c8a58d..8d20bbf 100644 (file)
@@ -1947,11 +1947,16 @@ main (int argc, char **argv)
     { NULL }
   };
 
+#ifdef G_OS_WIN32
+  extern gchar *_glib_get_locale_dir (void);
+  gchar *tmp;
+#endif
+
   setlocale (LC_ALL, "");
   textdomain (GETTEXT_PACKAGE);
+
 #ifdef G_OS_WIN32
-  extern gchar *_glib_get_locale_dir (void);
-  gchar *tmp = _glib_get_locale_dir ();
+  tmp = _glib_get_locale_dir ();
   bindtextdomain (GETTEXT_PACKAGE, tmp);
   g_free (tmp);
 #else
index 04a1954..087288d 100644 (file)
@@ -690,11 +690,16 @@ main (int argc, char **argv)
   GSettings *settings;
   const gchar *key;
 
+#ifdef G_OS_WIN32
+  extern gchar *_glib_get_locale_dir (void);
+  gchar *tmp;
+#endif
+
   setlocale (LC_ALL, "");
   textdomain (GETTEXT_PACKAGE);
 
 #ifdef G_OS_WIN32
-  gchar *tmp = _glib_get_locale_dir ();
+  tmp = _glib_get_locale_dir ();
   bindtextdomain (GETTEXT_PACKAGE, tmp);
   g_free (tmp);
 #else