2015-11-05 06:59:46 +00:00
|
|
|
#ifndef CRYPTOPP_STDCPP_H
|
|
|
|
#define CRYPTOPP_STDCPP_H
|
|
|
|
|
|
|
|
#if _MSC_VER >= 1500
|
|
|
|
#define _DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY
|
|
|
|
#include <intrin.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <memory>
|
|
|
|
#include <exception>
|
|
|
|
#include <typeinfo>
|
2015-11-18 20:32:28 +00:00
|
|
|
#include <algorithm>
|
2015-11-05 06:59:46 +00:00
|
|
|
#include <functional>
|
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
|
|
|
#include <limits>
|
2015-11-18 20:32:28 +00:00
|
|
|
#include <deque>
|
|
|
|
#include <list>
|
2015-11-05 06:59:46 +00:00
|
|
|
#include <map>
|
|
|
|
#include <new>
|
|
|
|
|
2016-04-06 07:42:04 +00:00
|
|
|
#if defined(_MSC_VER) && (_MSC_VER < 1900) && defined(_HAS_EXCEPTIONS) && (_HAS_EXCEPTIONS == 0)
|
|
|
|
// Workaround for: https://connect.microsoft.com/VisualStudio/feedback/details/1600701/type-info-does-not-compile-with-has-exceptions-0
|
|
|
|
namespace std {
|
|
|
|
using ::type_info;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-11-18 20:32:28 +00:00
|
|
|
#if _MSC_VER >= 1600
|
|
|
|
// for make_unchecked_array_iterator
|
|
|
|
#include <iterator>
|
2015-11-05 06:59:46 +00:00
|
|
|
#endif
|
|
|
|
|
2016-05-03 04:23:05 +00:00
|
|
|
#if defined(CRYPTOPP_CXX11_ATOMICS)
|
|
|
|
#include <atomic>
|
|
|
|
#endif
|
|
|
|
|
2016-06-07 02:08:04 +00:00
|
|
|
#if defined(CRYPTOPP_CXX11_SYNCHRONIZATION)
|
|
|
|
#include <mutex>
|
|
|
|
#endif
|
|
|
|
|
2015-11-05 06:59:46 +00:00
|
|
|
#include <cstdlib>
|
|
|
|
#include <cstddef>
|
|
|
|
#include <cstring>
|
|
|
|
#include <climits>
|
2016-09-16 15:27:15 +00:00
|
|
|
#include "trap.h"
|
2015-11-05 06:59:46 +00:00
|
|
|
|
|
|
|
#ifdef CRYPTOPP_INCLUDE_VECTOR_CC
|
|
|
|
// workaround needed on Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21
|
|
|
|
#include <vector.cc>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// for alloca
|
|
|
|
#if defined(CRYPTOPP_BSD_AVAILABLE)
|
|
|
|
#include <stdlib.h>
|
2015-11-18 20:32:28 +00:00
|
|
|
#elif defined(CRYPTOPP_UNIX_AVAILABLE) || defined(__sun) || defined(QNX)
|
2015-11-05 06:59:46 +00:00
|
|
|
#include <alloca.h>
|
2015-11-18 20:32:28 +00:00
|
|
|
#elif defined(CRYPTOPP_WIN32_AVAILABLE) || defined(__MINGW32__) || defined(__BORLANDC__)
|
2015-11-05 06:59:46 +00:00
|
|
|
#include <malloc.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning(disable: 4231) // re-disable this
|
|
|
|
#ifdef _CRTAPI1
|
|
|
|
#define CRYPTOPP_MSVCRT6
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|