mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Add Mac OS X detection to config.h (credit: Sven Weidauer)
svn path=/trunk/netsurf/; revision=11291
This commit is contained in:
parent
f9d10d83bd
commit
8c09af5568
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user