ext-cryptopp/stdcpp.h

77 lines
1.7 KiB
C
Raw Normal View History

2018-01-23 22:47:19 +00:00
// stdcpp.h - originally written and placed in the public domain by Wei Dai
/// \file stdcpp.h
/// \brief Common C++ header files
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>
#include <algorithm>
2015-11-05 06:59:46 +00:00
#include <functional>
#include <utility>
#include <vector>
#include <limits>
#include <deque>
#include <list>
2015-11-05 06:59:46 +00:00
#include <map>
#include <new>
// http://connect.microsoft.com/VisualStudio/feedback/details/1600701/type-info-does-not-compile-with-has-exceptions-0
#if defined(_MSC_VER) && (_MSC_VER < 1900) && defined(_HAS_EXCEPTIONS) && (_HAS_EXCEPTIONS == 0)
namespace std {
using ::type_info;
}
#endif
// make_unchecked_array_iterator
#if _MSC_VER >= 1600
#include <iterator>
2015-11-05 06:59:46 +00:00
#endif
#if defined(CRYPTOPP_CXX11_ATOMICS)
#include <atomic>
#endif
2016-06-07 02:08:04 +00:00
#if defined(CRYPTOPP_CXX11_SYNCHRONIZATION)
#include <mutex>
#endif
#if defined(CRYPTOPP_CXX11_RVALUES)
# include <utility>
#endif
2015-11-05 06:59:46 +00:00
#include <cstdlib>
#include <cstddef>
#include <cstring>
#include <climits>
#include <cmath>
// uintptr_t and ptrdiff_t
#if (__cplusplus < 201103L) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))
# include <stdint.h>
#elif defined(_MSC_VER) && (_MSC_VER < 1700)
2016-10-01 08:42:42 +00:00
# include <stddef.h>
#endif
2015-11-05 06:59:46 +00:00
// workaround needed on Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21
#ifdef CRYPTOPP_INCLUDE_VECTOR_CC
# include <vector.cc>
2015-11-05 06:59:46 +00:00
#endif
// C++Builder's standard library (Dinkumware) do not have C's global log() function
// https://github.com/weidai11/cryptopp/issues/520
#ifdef __BORLANDC__
using std::log;
#endif
2015-11-05 06:59:46 +00:00
#endif