From 55162445db4c8ea46be671c2abed4ad4e77e1dcd Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 31 Jan 2010 00:36:02 +0000 Subject: Add Windows frontend svn path=/trunk/netsurf/; revision=9940 --- utils/config.h | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'utils/config.h') 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. */ -- cgit v1.2.3