Remove second definition of CRYPTOPP_ALIGN_DATA using alignas
parent
0e51761f17
commit
686aef6028
6
config.h
6
config.h
|
|
@ -862,12 +862,6 @@ NAMESPACE_END
|
||||||
|
|
||||||
#endif // CRYPTOPP_CXX11
|
#endif // CRYPTOPP_CXX11
|
||||||
|
|
||||||
// Hack... CRYPTOPP_ALIGN_DATA is defined earlier, before C++11 alignas available
|
|
||||||
#if defined(CRYPTOPP_CXX11_ALIGNAS)
|
|
||||||
# undef CRYPTOPP_ALIGN_DATA
|
|
||||||
# define CRYPTOPP_ALIGN_DATA(x) alignas(x)
|
|
||||||
#endif // CRYPTOPP_CXX11_ALIGNAS
|
|
||||||
|
|
||||||
#if defined(CRYPTOPP_CXX11_NOEXCEPT)
|
#if defined(CRYPTOPP_CXX11_NOEXCEPT)
|
||||||
# define CRYPTOPP_THROW noexcept(false)
|
# define CRYPTOPP_THROW noexcept(false)
|
||||||
# define CRYPTOPP_NO_THROW noexcept(true)
|
# define CRYPTOPP_NO_THROW noexcept(true)
|
||||||
|
|
|
||||||
|
|
@ -405,6 +405,8 @@ NAMESPACE_END
|
||||||
# pragma GCC diagnostic ignored "-Wunused-function"
|
# pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// You may need to force include a C++ header on Android when using STLPort to ensure
|
||||||
|
// _STLPORT_VERSION is defined: CXXFLAGS="-DNDEBUG -g2 -O2 -std=c++11 -include iosfwd"
|
||||||
// TODO: Figure out C++17 and lack of std::uncaught_exception
|
// TODO: Figure out C++17 and lack of std::uncaught_exception
|
||||||
#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__MWERKS__) || (defined(_STLPORT_VERSION) && ((_STLPORT_VERSION < 0x450) || defined(_STLP_NO_UNCAUGHT_EXCEPT_SUPPORT)))
|
#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__MWERKS__) || (defined(_STLPORT_VERSION) && ((_STLPORT_VERSION < 0x450) || defined(_STLP_NO_UNCAUGHT_EXCEPT_SUPPORT)))
|
||||||
#define CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION
|
#define CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION
|
||||||
|
|
@ -860,12 +862,6 @@ NAMESPACE_END
|
||||||
|
|
||||||
#endif // CRYPTOPP_CXX11
|
#endif // CRYPTOPP_CXX11
|
||||||
|
|
||||||
// Hack... CRYPTOPP_ALIGN_DATA is defined earlier, before C++11 alignas available
|
|
||||||
#if defined(CRYPTOPP_CXX11_ALIGNAS)
|
|
||||||
# undef CRYPTOPP_ALIGN_DATA
|
|
||||||
# define CRYPTOPP_ALIGN_DATA(x) alignas(x)
|
|
||||||
#endif // CRYPTOPP_CXX11_ALIGNAS
|
|
||||||
|
|
||||||
#if defined(CRYPTOPP_CXX11_NOEXCEPT)
|
#if defined(CRYPTOPP_CXX11_NOEXCEPT)
|
||||||
# define CRYPTOPP_THROW noexcept(false)
|
# define CRYPTOPP_THROW noexcept(false)
|
||||||
# define CRYPTOPP_NO_THROW noexcept(true)
|
# define CRYPTOPP_NO_THROW noexcept(true)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue