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:
@@ -145,6 +145,11 @@
|
||||
#include <malloc.h> // alloca()
|
||||
#endif
|
||||
|
||||
#if defined(__MINGW32__) && defined(_GNU_SOURCE)
|
||||
/* For some weird reasons, SDL defines _GNU_SOURCE */
|
||||
#undef _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#if defined(WIN32)
|
||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user