alloca build fixes
This commit is contained in:
parent
4cb1c9f006
commit
3ea1b0d304
|
@ -41,11 +41,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#if defined (_LINUX_) || defined (_CYGWIN_)
|
|
||||||
#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)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue