diff options
author | glx <glx@openttd.org> | 2008-08-24 17:02:21 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-08-24 17:02:21 +0000 |
commit | 4bb40a7d4431b32016353d197c9fa8f59fe119a9 (patch) | |
tree | 4d583b36854c8c29c4b2c087d4a80ea73477af39 /src/stdafx.h | |
parent | 7ceb1252a2fc36adbe65ea49918255120a83c85a (diff) | |
download | openttd-4bb40a7d4431b32016353d197c9fa8f59fe119a9.tar.xz |
(svn r14154) -Fix (r14153): strndup is a GNU extension, so it doesn't exist on all platforms
Diffstat (limited to 'src/stdafx.h')
-rw-r--r-- | src/stdafx.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index f6ef278c4..5ca14d082 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -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 |