(svn r21295) -Fix [FS#4259]: FreeBSD introduced strndup as well (MicRO)

This commit is contained in:
rubidium 2010-11-22 17:59:11 +00:00
parent acdc8b24d7
commit 9701e38412

View File

@ -277,12 +277,12 @@ static inline bool IsWhitespace(WChar c)
}
/* Needed for NetBSD version (so feature) testing */
#ifdef __NetBSD__
#if defined(__NetBSD__) || defined(__FreeBSD__)
#include <sys/param.h>
#endif
/* strndup is a GNU extension */
#if defined(_GNU_SOURCE) || (defined(__NetBSD_Version__) && 400000000 <= __NetBSD_Version__)
#if defined(_GNU_SOURCE) || (defined(__NetBSD_Version__) && 400000000 <= __NetBSD_Version__) || (defined(__FreeBSD_version) && 720000 <= __FreeBSD_version)
# undef DEFINE_STRNDUP
#else
# define DEFINE_STRNDUP