summaryrefslogtreecommitdiffstats
path: root/common/w32reg.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2004-12-15 15:15:54 +0100
committerWerner Koch <wk@gnupg.org>2004-12-15 15:15:54 +0100
commit69967b04125e53811182a01d2700984469117339 (patch)
tree3034ccf72b4bb558187f3e1d435a92ec193e093c /common/w32reg.c
parentYep. No lost threads anymore. (diff)
downloadgnupg2-69967b04125e53811182a01d2700984469117339.tar.xz
gnupg2-69967b04125e53811182a01d2700984469117339.zip
A whole bunch of changes to allow building for W32.
Diffstat (limited to 'common/w32reg.c')
-rw-r--r--common/w32reg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/w32reg.c b/common/w32reg.c
index 19fb613e7..a85ac7348 100644
--- a/common/w32reg.c
+++ b/common/w32reg.c
@@ -19,7 +19,7 @@
*/
#include <config.h>
-#if defined (_WIN32) || defined (__CYGWIN32__)
+#ifdef HAVE_W32_SYSTEM
/* This module is only used in this environment */
#include <stdio.h>
@@ -29,6 +29,7 @@
#include <windows.h>
#include "util.h"
+#include "sysutils.h"
static HKEY
get_root_key(const char *root)
@@ -169,4 +170,4 @@ write_w32_registry_string(const char *root, const char *dir,
return 0;
}
-#endif /* __MINGW32__ || __CYGWIN32__ */
+#endif /*HAVE_W32_SYSTEM*/