mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
(svn r21295) -Fix [FS#4259]: FreeBSD introduced strndup as well (MicRO)
This commit is contained in:
parent
acdc8b24d7
commit
9701e38412
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user