From 0cfbfd6186c7b28a355069ebb89b9739908318c6 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 14 Jun 2007 17:05:07 +0000 Subject: A whole bunch of changes to allow building for Windows. See the ChangeLogs for details. --- g10/openfile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'g10/openfile.c') diff --git a/g10/openfile.c b/g10/openfile.c index 008752fb8..095aad9f4 100644 --- a/g10/openfile.c +++ b/g10/openfile.c @@ -330,7 +330,7 @@ open_sigfile( const char *iname, progress_filter_context_t *pfx ) static void copy_options_file( const char *destdir ) { - const char *datadir = GNUPG_DATADIR; + const char *datadir = gnupg_datadir (); char *fname; FILE *src, *dst; int linefeeds=0; @@ -407,6 +407,9 @@ void try_make_homedir( const char *fname ) { const char *defhome = GNUPG_DEFAULT_HOMEDIR; +#ifdef HAVE_W32_SYSTEM +#warning use a function and not a constant +#endif /* Create the directory only if the supplied directory name * is the same as the default one. This way we avoid to create -- cgit v1.2.3