mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-20 14:19:16 +02:00
Correct C99ism (mixed declarations and code) in Win32 ifdef branch.
2006-09-02 Tor Lillqvist <tml@novell.com> * glib/gutils.c (g_get_any_init_do): Correct C99ism (mixed declarations and code) in Win32 ifdef branch. (#353903, Mike Edenfield)
This commit is contained in:
parent
d6a4b61c33
commit
f8f4e16eb9
@ -1,3 +1,9 @@
|
|||||||
|
2006-09-02 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
* glib/gutils.c (g_get_any_init_do): Correct C99ism (mixed
|
||||||
|
declarations and code) in Win32 ifdef branch. (#353903, Mike
|
||||||
|
Edenfield)
|
||||||
|
|
||||||
2006-09-01 Abel Cheung <abel@oaka.org>
|
2006-09-01 Abel Cheung <abel@oaka.org>
|
||||||
|
|
||||||
* configure.in: Added 'dz' 'hy' to ALL_LINGUAS.
|
* configure.in: Added 'dz' 'hy' to ALL_LINGUAS.
|
||||||
|
@ -1627,6 +1627,7 @@ g_get_any_init_do (void)
|
|||||||
#else /* !HAVE_PWD_H */
|
#else /* !HAVE_PWD_H */
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
|
{
|
||||||
guint len = UNLEN+1;
|
guint len = UNLEN+1;
|
||||||
wchar_t buffer[UNLEN+1];
|
wchar_t buffer[UNLEN+1];
|
||||||
|
|
||||||
@ -1635,6 +1636,7 @@ g_get_any_init_do (void)
|
|||||||
g_user_name = g_utf16_to_utf8 (buffer, -1, NULL, NULL, NULL);
|
g_user_name = g_utf16_to_utf8 (buffer, -1, NULL, NULL, NULL);
|
||||||
g_real_name = g_strdup (g_user_name);
|
g_real_name = g_strdup (g_user_name);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif /* G_OS_WIN32 */
|
#endif /* G_OS_WIN32 */
|
||||||
|
|
||||||
#endif /* !HAVE_PWD_H */
|
#endif /* !HAVE_PWD_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user