From d6d37ee0c991ead2b1613c0af242d2e603313d87 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Wed, 4 May 2011 16:24:02 +0900 Subject: Releasing debian version 0.5.2-1 --- indep.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'indep.c') diff --git a/indep.c b/indep.c index 6f3dceb..65b04aa 100644 --- a/indep.c +++ b/indep.c @@ -1,7 +1,9 @@ -/* $Id: indep.c,v 1.37 2006/04/07 13:21:11 inu Exp $ */ +/* $Id: indep.c,v 1.38 2007/05/23 15:06:05 inu Exp $ */ #include "fm.h" #include +#ifndef __MINGW32_VERSION #include +#endif /* __MINGW32_VERSION */ #include #include #include @@ -225,6 +227,7 @@ expandPath(char *name) p = name; if (*p == '~') { p++; +#ifndef __MINGW32_VERSION if (IS_ALPHA(*p)) { char *q = strchr(p, '/'); if (q) { /* ~user/dir... */ @@ -238,8 +241,9 @@ expandPath(char *name) if (!passent) goto rest; extpath = Strnew_charp(passent->pw_dir); - } - else if (*p == '/' || *p == '\0') { /* ~/dir... or ~ */ + } else +#endif /* __MINGW32_VERSION */ + if (*p == '/' || *p == '\0') { /* ~/dir... or ~ */ extpath = Strnew_charp(getenv("HOME")); } else -- cgit v1.2.3