From f5c9a8080f0932335457fe5cb0dff38c2d491cb5 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 12 Jun 2014 19:03:18 +0200 Subject: Mingw compatibility fixes by trialuser --- src/rcchome.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/rcchome.c') diff --git a/src/rcchome.c b/src/rcchome.c index bf72df1..becbaac 100644 --- a/src/rcchome.c +++ b/src/rcchome.c @@ -49,8 +49,11 @@ void rccHomeSet() { #ifdef HAVE_PWD_H struct passwd *pw; #endif /* HAVE_PWD_H */ - +#ifdef _WIN32 + tmp = getenv ("HOMEPATH"); +#else tmp = getenv ("HOME"); +#endif if (tmp) rcc_home_dir = strdup (tmp); #ifdef HAVE_PWD_H else { -- cgit v1.2.3