FreeBSD #defines alloca() in <stdlib.h>, not <alloc.h> (that's a Linux/glibc thing), so make the #included file platform dependent

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7538 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2009-05-24 21:27:48 +00:00 committed by Git SVN Gateway
parent ecbe152f7c
commit 7bb1474692
1 changed files with 3 additions and 0 deletions

View File

@ -554,7 +554,10 @@
#elif defined(WZ_OS_UNIX)
# include <unistd.h>
#elif defined(WZ_OS_LINUX)
# include <alloca.h>
#elif defined(WZ_OS_FREEBSD)
# include <stdlib.h> // For alloca
#endif /* WZ_OS_* */