diff --git a/config.h b/config.h index 6059777d..9a26fdd2 100644 --- a/config.h +++ b/config.h @@ -862,12 +862,6 @@ NAMESPACE_END #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) # define CRYPTOPP_THROW noexcept(false) # define CRYPTOPP_NO_THROW noexcept(true) diff --git a/config.recommend b/config.recommend index 1ff4e7ea..934e461d 100644 --- a/config.recommend +++ b/config.recommend @@ -405,6 +405,8 @@ NAMESPACE_END # pragma GCC diagnostic ignored "-Wunused-function" #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 #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 @@ -860,12 +862,6 @@ NAMESPACE_END #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) # define CRYPTOPP_THROW noexcept(false) # define CRYPTOPP_NO_THROW noexcept(true)