Update gsettings utilities in GIO

Avoid C99-style variable declaration
This commit is contained in:
Chun-wei Fan 2011-06-07 10:49:29 +08:00
parent 1d1f44ca64
commit 09c98f18fc
2 changed files with 14 additions and 4 deletions

View File

@ -1947,11 +1947,16 @@ main (int argc, char **argv)
{ NULL }
};
setlocale (LC_ALL, "");
textdomain (GETTEXT_PACKAGE);
#ifdef G_OS_WIN32
extern gchar *_glib_get_locale_dir (void);
gchar *tmp = _glib_get_locale_dir ();
gchar *tmp;
#endif
setlocale (LC_ALL, "");
textdomain (GETTEXT_PACKAGE);
#ifdef G_OS_WIN32
tmp = _glib_get_locale_dir ();
bindtextdomain (GETTEXT_PACKAGE, tmp);
g_free (tmp);
#else

View 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