summaryrefslogtreecommitdiff
path: root/utils/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/config.h')
-rw-r--r--utils/config.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/utils/config.h b/utils/config.h
index c86770b6e..ba8d8227b 100644
--- a/utils/config.h
+++ b/utils/config.h
@@ -26,7 +26,7 @@
#define HAVE_STRNDUP
#if defined(__FreeBSD__) || (defined(__SRV4) && defined(__sun)) || \
defined(__APPLE__) || defined(__HAIKU__) || defined(__BEOS__) \
- || defined(__OpenBSD__)
+ || defined(__OpenBSD__) || defined(_WIN32)
/* FreeBSD and Solaris do not have this function, so
* we implement it ourselves in util.c
*/
@@ -35,12 +35,32 @@ char *strndup(const char *s, size_t n);
#endif
#define HAVE_STRCASESTR
-#if !(defined(_GNU_SOURCE) || defined(__NetBSD__) || defined(__OpenBSD__)) \
- || defined(riscos) || defined(__APPLE__)
+#if (!(defined(_GNU_SOURCE) || defined(__NetBSD__) || defined(__OpenBSD__)) \
+ || defined(riscos) || defined(__APPLE__) || defined(_WIN32))
#undef HAVE_STRCASESTR
char *strcasestr(const char *haystack, const char *needle);
#endif
+#define HAVE_UTSNAME
+#if (defined(_WIN32))
+#undef HAVE_UTSNAME
+#endif
+
+#define HAVE_MKDIR
+#if (defined(_WIN32))
+#undef HAVE_MKDIR
+#endif
+
+#define HAVE_SIGPIPE
+#if (defined(_WIN32))
+#undef HAVE_SIGPIPE
+#endif
+
+#define HAVE_STDOUT
+#if (defined(_WIN32))
+#undef HAVE_STDOUT
+#endif
+
#define HAVE_STRCHRNUL
/* For some reason, UnixLib defines this unconditionally.
* Assume we're using UnixLib if building for RISC OS. */