From 4287e530dba2f56c5d74a5221676f625c35bee15 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 24 Apr 2011 07:57:16 +0000 Subject: [PATCH] on Windows, the path separator in PATH env var is a semicolon, not a colon SVN revision: 58852 --- legacy/eina/src/lib/eina_prefix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/legacy/eina/src/lib/eina_prefix.c b/legacy/eina/src/lib/eina_prefix.c index eed06ec54d..05dbea0995 100644 --- a/legacy/eina/src/lib/eina_prefix.c +++ b/legacy/eina/src/lib/eina_prefix.c @@ -49,9 +49,11 @@ #include "eina_prefix.h" #ifdef _WIN32 +# define PSEP_C ';' # define DSEP_C '\\' # define DSEP_S "\\" #else +# define PSEP_C ':' # define DSEP_C '/' # define DSEP_S "/" #endif /* _WIN32 */ @@ -207,7 +209,7 @@ _try_argv(Eina_Prefix *pfx, const char *argv0) p = path; cp = p; lenexe = strlen(argv0); - while ((p = strchr(cp, ':'))) + while ((p = strchr(cp, PSEP_C))) { len = p - cp; s = malloc(len + 1 + lenexe + 1);