summaryrefslogtreecommitdiffstats
path: root/common/w32reg.c
diff options
context:
space:
mode:
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*/