Hopefully really fixed alloca.h for now.
This commit is contained in:
parent
5b5597e523
commit
4cb1c9f006
|
@ -41,8 +41,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
#else
|
||||
|
||||
#if defined (_LINUX_) || defined (_CYGWIN_)
|
||||
#include <alloca.h>
|
||||
#elif defined (_FREEBSD_)
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#define TORRENT_ALLOCA(t, n) static_cast<t*>(alloca(sizeof(t) * (n)))
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue