summaryrefslogtreecommitdiff
path: root/utils/config.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-01-31 00:36:02 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-01-31 00:36:02 +0000
commit55162445db4c8ea46be671c2abed4ad4e77e1dcd (patch)
tree52b04422e2575987ef9617d35c8f21b078a4b696 /utils/config.h
parent6990c2cd049d6e1a36c8e6a6bb9ba2f8d8db9fac (diff)
downloadnetsurf-55162445db4c8ea46be671c2abed4ad4e77e1dcd.tar.gz
netsurf-55162445db4c8ea46be671c2abed4ad4e77e1dcd.tar.bz2
Add Windows frontend
svn path=/trunk/netsurf/; revision=9940
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. */