aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/g10.c')
-rw-r--r--g10/g10.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/g10.c b/g10/g10.c
index d2865fe70..e2ad269c7 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -741,11 +741,11 @@ main( int argc, char **argv )
opt.marginals_needed = 3;
opt.max_cert_depth = 5;
opt.pgp2_workarounds = 1;
- #ifdef __MINGW32__
+#if defined (__MINGW32__) || defined (__CYGWIN32__)
opt.homedir = read_w32_registry_string( NULL, "Software\\GNU\\GnuPG", "HomeDir" );
- #else
+#else
opt.homedir = getenv("GNUPGHOME");
- #endif
+#endif
if( !opt.homedir || !*opt.homedir ) {
opt.homedir = GNUPG_HOMEDIR;
}