forked from mirror/OpenTTD
(svn r14154) -Fix (r14153): strndup is a GNU extension, so it doesn't exist on all platforms
This commit is contained in:
@@ -156,4 +156,9 @@ static inline bool IsWhitespace(WChar c)
|
||||
;
|
||||
}
|
||||
|
||||
#endif /* STRING_FUNC_H */
|
||||
#ifndef _GNU_SOURCE
|
||||
/* strndup is a GNU extension */
|
||||
char *strndup(const char *s, size_t len);
|
||||
#endif /* WIN32 || SUNOS */
|
||||
|
||||
#endif /* !_GNU_SOURCE */
|
||||
|
Reference in New Issue
Block a user