Fixed compile error on MinGW due to including <alloca.h>
parent
ab33799f5a
commit
25cc4c2db1
|
|
@ -70,13 +70,11 @@ being unloaded from L1 cache, until that round is finished.
|
||||||
#ifndef CRYPTOPP_GENERATE_X64_MASM
|
#ifndef CRYPTOPP_GENERATE_X64_MASM
|
||||||
|
|
||||||
#include "rijndael.h"
|
#include "rijndael.h"
|
||||||
|
#include "stdcpp.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "trap.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
|
#if GCC_DIAGNOSTIC_AWARE
|
||||||
# pragma GCC diagnostic push
|
# pragma GCC diagnostic push
|
||||||
# pragma GCC diagnostic ignored "-Wunused-function"
|
# pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
|
|
|
||||||
2
stdcpp.h
2
stdcpp.h
|
|
@ -50,7 +50,7 @@
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// Nearly everyone gets alloca from <alloca.h>.
|
// Nearly everyone gets alloca from <alloca.h>.
|
||||||
#ifdef CRYPTOPP_UNIX_AVAILABLE
|
#if defined(CRYPTOPP_UNIX_AVAILABLE) && !defined(__MINGW32__) && !defined(__BORLANDC__)
|
||||||
# include <alloca.h>
|
# include <alloca.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue