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
|
#define CRYPTOPP_UNIX_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
|
#define CRYPTOPP_BSD_AVAILABLE
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE)
|
#if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE)
|
||||||
# define HIGHRES_TIMER_AVAILABLE
|
# define HIGHRES_TIMER_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
13
stdcpp.h
13
stdcpp.h
|
|
@ -44,22 +44,13 @@
|
||||||
#include <vector.cc>
|
#include <vector.cc>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// for alloca
|
|
||||||
// #ifdef __sun
|
|
||||||
// #include <alloca.h>
|
|
||||||
// #elif defined(__MINGW32__) || defined(__BORLANDC__)
|
|
||||||
// #include <malloc.h>
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// Handle alloca...
|
// Handle alloca...
|
||||||
#if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(__MINGW32__) || defined(__BORLANDC__)
|
#if defined(CRYPTOPP_WIN32_AVAILABLE) || defined(__MINGW32__) || defined(__BORLANDC__)
|
||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
#else
|
#elif defined(CRYPTOPP_BSD_AVAILABLE)
|
||||||
# ifdef __OpenBSD__
|
|
||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
# else
|
#else // CRYPTOPP_UNIX_AVAILABLE
|
||||||
# include <alloca.h>
|
# include <alloca.h>
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue