Placed guards on <alloca.> include

pull/35/head
Jeffrey Walton 2015-07-27 16:07:46 -04:00
parent ef318d5423
commit 03f36f8655
1 changed files with 6 additions and 3 deletions

View File

@ -49,10 +49,13 @@
// #include <malloc.h>
// #endif
// Rijdael uses alloca. Just include it for everyone....
#include <alloca.h>
// Nearly everyone gets alloca from <alloca.h>.
#ifndef CRYPTOPP_UNIX_AVAILABLE
# include <alloca.h>
#endif
#if defined(__MINGW32__) || defined(__BORLANDC__)
// Windows includes alloca in <malloc.h>.
#if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(__MINGW32__) || defined(__BORLANDC__)
# include <malloc.h>
#endif