From 03f36f865582aea1d6dd99fd54b151b89341b273 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 27 Jul 2015 16:07:46 -0400 Subject: [PATCH] Placed guards on include --- stdcpp.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stdcpp.h b/stdcpp.h index bede8d8d..32688cef 100644 --- a/stdcpp.h +++ b/stdcpp.h @@ -49,10 +49,13 @@ // #include // #endif -// Rijdael uses alloca. Just include it for everyone.... -#include +// Nearly everyone gets alloca from . +#ifndef CRYPTOPP_UNIX_AVAILABLE +# include +#endif -#if defined(__MINGW32__) || defined(__BORLANDC__) +// Windows includes alloca in . +#if defined(CRYPTOPP_UNIX_AVAILABLE) || defined(__MINGW32__) || defined(__BORLANDC__) # include #endif