summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2005-07-14 13:05:27 +0000
committerArch Librarian <arch@canonical.com>2005-07-14 13:05:27 +0000
commite27a94dda90b2a5d65bb4eedef3a94abe8377e2e (patch)
tree2279acc8f61ffb3c3d4e5424887a42a514570237 /parse.c
parent5c5ede8ed4dafbced690d881d59d20eef87cd4e6 (diff)
downloadpkg-config-e27a94dda90b2a5d65bb4eedef3a94abe8377e2e.tar.gz
2002-09-26 Tor Lillqvist <tml@iki.fi>
Author: tml Date: 2002-09-26 17:25:41 GMT 2002-09-26 Tor Lillqvist <tml@iki.fi> * parse.c (get_compat_package): Return NULL right away on Windows. There has never been any of these legacy *-config scripts distributed for Windows as far as I know.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 4cd32ee..33337b1 100644
--- a/parse.c
+++ b/parse.c
@@ -1010,6 +1010,16 @@ try_command (const char *command)
Package *
get_compat_package (const char *name)
{
+#ifdef G_OS_WIN32
+ /* There has never been any of these legacy *-config scripts on
+ * Windows as far as I know. No use trying to execute them, will
+ * only confuse users to see the "blabla is not recognized as an
+ * internal or external command, operable program or batch file"
+ * messages.
+ */
+ return NULL;
+#else
+
Package *pkg;
if (name_ends_in_uninstalled (name))
@@ -1328,5 +1338,5 @@ get_compat_package (const char *name)
return pkg;
}
+#endif
}
-