forked from premiere/premiere-libtorrent
alloca macro fix
This commit is contained in:
parent
d07ccaf6b8
commit
52ee9342e9
|
@ -37,12 +37,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#ifdef TORRENT_WINDOWS
|
#ifdef TORRENT_WINDOWS
|
||||||
|
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#define TORRENT_ALLOCA(t, n) static_cast<t*>(_alloca(sizeof(t) * n));
|
#define TORRENT_ALLOCA(t, n) static_cast<t*>(_alloca(sizeof(t) * (n)));
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
#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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue