summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-01-12 20:15:04 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-01-12 20:15:04 +0000
commit8c09af55681ff4d4e40eba62fca0c219443a2fc7 (patch)
tree06f708241de7d45fd4b24b1aeb603445e9226ec6
parentf9d10d83bd43945fe5b9c1b08c40e8e7109a6f83 (diff)
downloadnetsurf-8c09af55681ff4d4e40eba62fca0c219443a2fc7.tar.gz
netsurf-8c09af55681ff4d4e40eba62fca0c219443a2fc7.tar.bz2
Add Mac OS X detection to config.h (credit: Sven Weidauer)
svn path=/trunk/netsurf/; revision=11291
-rw-r--r--utils/config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/config.h b/utils/config.h
index 4445f8cfb..058662a8c 100644
--- a/utils/config.h
+++ b/utils/config.h
@@ -24,7 +24,7 @@
/* Try to detect which features the target OS supports */
-#if (defined(_GNU_SOURCE))
+#if (defined(_GNU_SOURCE) && !defined(__APPLE__))
#define HAVE_STRNDUP
#else
#undef HAVE_STRNDUP
@@ -40,7 +40,7 @@ char *strcasestr(const char *haystack, const char *needle);
/* For some reason, UnixLib defines this unconditionally.
* Assume we're using UnixLib if building for RISC OS. */
-#if (defined(_GNU_SOURCE) || defined(riscos))
+#if ((defined(_GNU_SOURCE) && !defined(__APPLE__)) || defined(riscos))
#define HAVE_STRCHRNUL
#else
#undef HAVE_STRCHRNUL