summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-12-23 22:31:46 +0000
committerdarkvater <darkvater@openttd.org>2004-12-23 22:31:46 +0000
commitb2499545385caeb4d9ccc8b8d1c8737441ae5ae9 (patch)
tree0c36d0f7aed9d6abbdcb4025305824270c0169da /stdafx.h
parentdda14faac5242af4940dd012f32f9cfbea0738f2 (diff)
downloadopenttd-b2499545385caeb4d9ccc8b8d1c8737441ae5ae9.tar.xz
(svn r1266) -Fix: fix some cygwin/mingw warnings
-Note: when compiling with MinGW (-mno-cygwin) __MINGW32__ is defined; when compiling without it __CYGWIN32__ is defined. You need to set either -mno-cygwin (MinGW) or -mwin32 (Cygwin) to have WIN32 defined
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdafx.h b/stdafx.h
index 693979970..67401040a 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -93,6 +93,10 @@
# include <malloc.h>
#endif
+#if defined(__MINGW32__) || defined(__CYGWIN__)
+#include <malloc.h> // alloca()
+#endif
+
// Stuff for MSVC
#if defined(_MSC_VER)
# include <malloc.h> // alloca()