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-861f7616d084master
parent
ecbe152f7c
commit
7bb1474692
|
@ -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_* */
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue