Finished alloca cleanup under the BSDs
parent
697ccb452b
commit
e79ae73295
4
config.h
4
config.h
|
|
@ -388,6 +388,10 @@ NAMESPACE_END
|
|||
#define CRYPTOPP_UNIX_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#define CRYPTOPP_BSD_AVAILABLE
|
||||
#endif
|
||||
|
||||
#if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE)
|
||||
# define HIGHRES_TIMER_AVAILABLE
|
||||
#endif
|
||||
|
|
|
|||
17
stdcpp.h
17
stdcpp.h
|
|
@ -44,22 +44,13 @@
|
|||
#include <vector.cc>
|
||||
#endif
|
||||
|
||||
// for alloca
|
||||
// #ifdef __sun
|
||||
// #include <alloca.h>
|
||||
// #elif defined(__MINGW32__) || defined(__BORLANDC__)
|
||||
// #include <malloc.h>
|
||||
// #endif
|
||||
|
||||
// Handle alloca...
|
||||
#if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(__MINGW32__) || defined(__BORLANDC__)
|
||||
# include <malloc.h>
|
||||
#else
|
||||
# ifdef __OpenBSD__
|
||||
# include <stdlib.h>
|
||||
# else
|
||||
# include <alloca.h>
|
||||
# endif
|
||||
#elif defined(CRYPTOPP_BSD_AVAILABLE)
|
||||
# include <stdlib.h>
|
||||
#else // CRYPTOPP_UNIX_AVAILABLE
|
||||
# include <alloca.h>
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
|
|
|||
Loading…
Reference in New Issue