2003-02-19 Tor Lillqvist <tml@iki.fi>

Author: tml
Date: 2003-02-19 19:24:14 GMT
2003-02-19  Tor Lillqvist  <tml@iki.fi>

	* pkg.c (add_env_variable_to_list): Use G_SEARCHPATH_SEPARATOR_S
	instead of hardcoded ":".
	(verify_package): Don't use /usr/include on Win32.
This commit is contained in:
Arch Librarian 2005-07-14 13:05:44 +00:00
parent 0e1fdf32ac
commit 7fcc493228
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2003-02-19 Tor Lillqvist <tml@iki.fi>
* pkg.c (add_env_variable_to_list): Use G_SEARCHPATH_SEPARATOR_S
instead of hardcoded ":".
(verify_package): Don't use /usr/include on Win32.
2003-02-15 Havoc Pennington <hp@pobox.com>
* pkg.c (verify_package): patch from Nalin to use /usr/lib64 as

8
pkg.c
View file

@ -652,9 +652,7 @@ add_env_variable_to_list (GSList *list, const gchar *env)
gchar **values;
gint i;
/* FIXME: the separator should be a ';' on Windows
*/
values = g_strsplit (env, ":", 0);
values = g_strsplit (env, G_SEARCHPATH_SEPARATOR_S, 0);
for (i = 0; values[i] != NULL; i++)
{
list = g_slist_append (list, g_strdup (values[i]));
@ -787,8 +785,10 @@ verify_package (Package *pkg)
/* We make a list of system directories that gcc expects so we can remove
* them.
*/
#ifndef G_OS_WIN32
system_directories = g_slist_append (NULL, g_strdup ("/usr/include"));
#endif
c_include_path = g_getenv ("C_INCLUDE_PATH");
if (c_include_path != NULL)
{