diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2014-06-12 19:03:18 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2014-06-12 19:03:18 +0200 |
commit | f5c9a8080f0932335457fe5cb0dff38c2d491cb5 (patch) | |
tree | 26ec33246b846a54a6a52747519ca80c3c1000b7 /src/rcchome.c | |
parent | 89f93872d8e024c761cc55335518f7d48d414fdb (diff) | |
download | librcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.tar.gz librcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.tar.bz2 librcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.tar.xz librcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.zip |
Mingw compatibility fixes by trialuser
Diffstat (limited to 'src/rcchome.c')
-rw-r--r-- | src/rcchome.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |