mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 04:43:06 +02:00
Declare glib_top_share_dir and exe_top_share_dir only in G_OS_WIN32.
Thu Apr 7 22:51:15 2005 <yosh@gimp.org> * glib/gutils.c (g_get_system_data_dirs): Declare glib_top_share_dir and exe_top_share_dir only in G_OS_WIN32.
This commit is contained in:
parent
ee8a538538
commit
224e0b76f6
@ -1,3 +1,8 @@
|
|||||||
|
Thu Apr 7 22:51:15 2005 <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/gutils.c (g_get_system_data_dirs): Declare glib_top_share_dir
|
||||||
|
and exe_top_share_dir only in G_OS_WIN32.
|
||||||
|
|
||||||
2005-04-08 Tor Lillqvist <tml@novell.com>
|
2005-04-08 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* glib/gutils.c (g_get_system_data_dirs): After investigating more
|
* glib/gutils.c (g_get_system_data_dirs): After investigating more
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Thu Apr 7 22:51:15 2005 <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/gutils.c (g_get_system_data_dirs): Declare glib_top_share_dir
|
||||||
|
and exe_top_share_dir only in G_OS_WIN32.
|
||||||
|
|
||||||
2005-04-08 Tor Lillqvist <tml@novell.com>
|
2005-04-08 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* glib/gutils.c (g_get_system_data_dirs): After investigating more
|
* glib/gutils.c (g_get_system_data_dirs): After investigating more
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Thu Apr 7 22:51:15 2005 <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/gutils.c (g_get_system_data_dirs): Declare glib_top_share_dir
|
||||||
|
and exe_top_share_dir only in G_OS_WIN32.
|
||||||
|
|
||||||
2005-04-08 Tor Lillqvist <tml@novell.com>
|
2005-04-08 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* glib/gutils.c (g_get_system_data_dirs): After investigating more
|
* glib/gutils.c (g_get_system_data_dirs): After investigating more
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Thu Apr 7 22:51:15 2005 <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/gutils.c (g_get_system_data_dirs): Declare glib_top_share_dir
|
||||||
|
and exe_top_share_dir only in G_OS_WIN32.
|
||||||
|
|
||||||
2005-04-08 Tor Lillqvist <tml@novell.com>
|
2005-04-08 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* glib/gutils.c (g_get_system_data_dirs): After investigating more
|
* glib/gutils.c (g_get_system_data_dirs): After investigating more
|
||||||
|
@ -2060,13 +2060,14 @@ g_get_user_cache_dir (void)
|
|||||||
G_CONST_RETURN gchar * G_CONST_RETURN *
|
G_CONST_RETURN gchar * G_CONST_RETURN *
|
||||||
g_get_system_data_dirs (void)
|
g_get_system_data_dirs (void)
|
||||||
{
|
{
|
||||||
gchar *data_dirs, *glib_top_share_dir, *exe_top_share_dir, **data_dir_vector;
|
gchar *data_dirs, **data_dir_vector;
|
||||||
|
|
||||||
G_LOCK (g_utils_global);
|
G_LOCK (g_utils_global);
|
||||||
|
|
||||||
if (!g_system_data_dirs)
|
if (!g_system_data_dirs)
|
||||||
{
|
{
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
|
gchar *glib_top_share_dir, *exe_top_share_dir;
|
||||||
|
|
||||||
/* Documents and Settings\All Users\Application Data */
|
/* Documents and Settings\All Users\Application Data */
|
||||||
char *appdata = get_special_folder (CSIDL_COMMON_APPDATA);
|
char *appdata = get_special_folder (CSIDL_COMMON_APPDATA);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user