Fixed compile error on MinGW due to including <alloca.h>

pull/35/head
Jeffrey Walton 2015-07-27 16:36:05 -04:00
parent ab33799f5a
commit 25cc4c2db1
2 changed files with 2 additions and 4 deletions

View File

@ -70,13 +70,11 @@ being unloaded from L1 cache, until that round is finished.
#ifndef CRYPTOPP_GENERATE_X64_MASM
#include "rijndael.h"
#include "stdcpp.h"
#include "misc.h"
#include "cpu.h"
#include "trap.h"
// Non-conforming C++ program die to alloca. See http://stackoverflow.com/q/31645309/608639.
#include <alloca.h>
#if GCC_DIAGNOSTIC_AWARE
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-function"

View File

@ -50,7 +50,7 @@
// #endif
// Nearly everyone gets alloca from <alloca.h>.
#ifdef CRYPTOPP_UNIX_AVAILABLE
#if defined(CRYPTOPP_UNIX_AVAILABLE) && !defined(__MINGW32__) && !defined(__BORLANDC__)
# include <alloca.h>
#endif