mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
Update gsettings utilities in GIO
Avoid C99-style variable declaration
This commit is contained in:
parent
1d1f44ca64
commit
09c98f18fc
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user