mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
Export _glib_get_locale_dir() as it is now used in gio, too
This commit is contained in:
parent
73af5ab4cf
commit
1158f9c171
@ -1653,6 +1653,7 @@ main (gint argc, gchar *argv[])
|
|||||||
textdomain (GETTEXT_PACKAGE);
|
textdomain (GETTEXT_PACKAGE);
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
|
extern gchar *_glib_get_locale_dir (void);
|
||||||
gchar *tmp = _glib_get_locale_dir ();
|
gchar *tmp = _glib_get_locale_dir ();
|
||||||
bindtextdomain (GETTEXT_PACKAGE, tmp);
|
bindtextdomain (GETTEXT_PACKAGE, tmp);
|
||||||
g_free (tmp);
|
g_free (tmp);
|
||||||
|
@ -1907,7 +1907,8 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
setlocale (LC_ALL, "");
|
setlocale (LC_ALL, "");
|
||||||
textdomain (GETTEXT_PACKAGE);
|
textdomain (GETTEXT_PACKAGE);
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
|
extern gchar *_glib_get_locale_dir (void);
|
||||||
gchar *tmp = _glib_get_locale_dir ();
|
gchar *tmp = _glib_get_locale_dir ();
|
||||||
bindtextdomain (GETTEXT_PACKAGE, tmp);
|
bindtextdomain (GETTEXT_PACKAGE, tmp);
|
||||||
g_free (tmp);
|
g_free (tmp);
|
||||||
|
@ -1608,6 +1608,9 @@ g_unichar_validate
|
|||||||
#if IN_HEADER(__GLIBINTL_H__)
|
#if IN_HEADER(__GLIBINTL_H__)
|
||||||
#if IN_FILE(__G_UTILS_C__)
|
#if IN_FILE(__G_UTILS_C__)
|
||||||
glib_gettext G_GNUC_FORMAT(1)
|
glib_gettext G_GNUC_FORMAT(1)
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
_glib_get_locale_dir
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -3572,7 +3572,7 @@ _g_utils_thread_init (void)
|
|||||||
* have to use system codepage as bindtextdomain() doesn't have a
|
* have to use system codepage as bindtextdomain() doesn't have a
|
||||||
* UTF-8 interface.
|
* UTF-8 interface.
|
||||||
*/
|
*/
|
||||||
static gchar *
|
gchar *
|
||||||
_glib_get_locale_dir (void)
|
_glib_get_locale_dir (void)
|
||||||
{
|
{
|
||||||
gchar *install_dir = NULL, *locale_dir;
|
gchar *install_dir = NULL, *locale_dir;
|
||||||
|
Loading…
Reference in New Issue
Block a user