Hopefully really fixed alloca.h for now.

This commit is contained in:
Georg Rudoy 2009-09-06 18:43:09 +00:00
parent 5b5597e523
commit 4cb1c9f006
1 changed files with 4 additions and 0 deletions

View File

@ -41,8 +41,12 @@ POSSIBILITY OF SUCH DAMAGE.
#else #else
#if defined (_LINUX_) || defined (_CYGWIN_)
#include <alloca.h> #include <alloca.h>
#elif defined (_FREEBSD_)
#include <stdlib.h> #include <stdlib.h>
#endif
#define TORRENT_ALLOCA(t, n) static_cast<t*>(alloca(sizeof(t) * (n))) #define TORRENT_ALLOCA(t, n) static_cast<t*>(alloca(sizeof(t) * (n)))
#endif #endif