+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
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]));
/* 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)
{