diff --git a/include/openssl/base.h b/include/openssl/base.h index bfb4ea84..ff3f7eea 100644 --- a/include/openssl/base.h +++ b/include/openssl/base.h @@ -307,6 +307,19 @@ typedef void *OPENSSL_BLOCK; #define BORINGSSL_NO_CXX #endif +#if !defined(BORINGSSL_NO_CXX) +extern "C++" { + +#include + +// STLPort, used by some Android consumers, not have std::unique_ptr. +#if defined(_STLPORT_VERSION) +#define BORINGSSL_NO_CXX +#endif + +} // extern C++ +#endif // !BORINGSSL_NO_CXX + #if defined(BORINGSSL_NO_CXX) #define BORINGSSL_MAKE_DELETER(type, deleter)