|
@@ -92,7 +92,7 @@ void operator delete[](void* ptr, void*) noexcept;
|
|
#include <cstdlib>
|
|
#include <cstdlib>
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#if defined(_LIBCPP_ABI_MICROSOFT)
|
|
|
|
|
|
+#if defined(_LIBCPP_ABI_MICROSOFT) && !defined(_LIBCPP_NO_VCRUNTIME)
|
|
#include <new.h>
|
|
#include <new.h>
|
|
#endif
|
|
#endif
|
|
|
|
|
|
@@ -114,7 +114,7 @@ void operator delete[](void* ptr, void*) noexcept;
|
|
namespace std // purposefully not using versioning namespace
|
|
namespace std // purposefully not using versioning namespace
|
|
{
|
|
{
|
|
|
|
|
|
-#if !defined(_LIBCPP_ABI_MICROSOFT)
|
|
|
|
|
|
+#if !defined(_LIBCPP_ABI_MICROSOFT) || defined(_LIBCPP_NO_VCRUNTIME)
|
|
struct _LIBCPP_TYPE_VIS nothrow_t {};
|
|
struct _LIBCPP_TYPE_VIS nothrow_t {};
|
|
extern _LIBCPP_FUNC_VIS const nothrow_t nothrow;
|
|
extern _LIBCPP_FUNC_VIS const nothrow_t nothrow;
|
|
|
|
|
|
@@ -140,7 +140,7 @@ typedef void (*new_handler)();
|
|
_LIBCPP_FUNC_VIS new_handler set_new_handler(new_handler) _NOEXCEPT;
|
|
_LIBCPP_FUNC_VIS new_handler set_new_handler(new_handler) _NOEXCEPT;
|
|
_LIBCPP_FUNC_VIS new_handler get_new_handler() _NOEXCEPT;
|
|
_LIBCPP_FUNC_VIS new_handler get_new_handler() _NOEXCEPT;
|
|
|
|
|
|
-#endif // !_LIBCPP_ABI_MICROSOFT
|
|
|
|
|
|
+#endif // !_LIBCPP_ABI_MICROSOFT || _LIBCPP_NO_VCRUNTIME
|
|
|
|
|
|
_LIBCPP_NORETURN _LIBCPP_FUNC_VIS void __throw_bad_alloc(); // not in C++ spec
|
|
_LIBCPP_NORETURN _LIBCPP_FUNC_VIS void __throw_bad_alloc(); // not in C++ spec
|
|
|
|
|
|
@@ -174,7 +174,7 @@ enum align_val_t { __zero = 0, __max = (size_t)-1 };
|
|
#define _THROW_BAD_ALLOC
|
|
#define _THROW_BAD_ALLOC
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#if !defined(_LIBCPP_ABI_MICROSOFT)
|
|
|
|
|
|
+#if !defined(_LIBCPP_ABI_MICROSOFT) || defined(_LIBCPP_NO_VCRUNTIME)
|
|
|
|
|
|
_LIBCPP_OVERRIDABLE_FUNC_VIS void* operator new(std::size_t __sz) _THROW_BAD_ALLOC;
|
|
_LIBCPP_OVERRIDABLE_FUNC_VIS void* operator new(std::size_t __sz) _THROW_BAD_ALLOC;
|
|
_LIBCPP_OVERRIDABLE_FUNC_VIS void* operator new(std::size_t __sz, const std::nothrow_t&) _NOEXCEPT _NOALIAS;
|
|
_LIBCPP_OVERRIDABLE_FUNC_VIS void* operator new(std::size_t __sz, const std::nothrow_t&) _NOEXCEPT _NOALIAS;
|
|
@@ -215,7 +215,7 @@ inline _LIBCPP_INLINE_VISIBILITY void* operator new[](std::size_t, void* __p) _N
|
|
inline _LIBCPP_INLINE_VISIBILITY void operator delete (void*, void*) _NOEXCEPT {}
|
|
inline _LIBCPP_INLINE_VISIBILITY void operator delete (void*, void*) _NOEXCEPT {}
|
|
inline _LIBCPP_INLINE_VISIBILITY void operator delete[](void*, void*) _NOEXCEPT {}
|
|
inline _LIBCPP_INLINE_VISIBILITY void operator delete[](void*, void*) _NOEXCEPT {}
|
|
|
|
|
|
-#endif // !_LIBCPP_ABI_MICROSOFT
|
|
|
|
|
|
+#endif // !_LIBCPP_ABI_MICROSOFT || _LIBCPP_NO_VCRUNTIME
|
|
|
|
|
|
_LIBCPP_BEGIN_NAMESPACE_STD
|
|
_LIBCPP_BEGIN_NAMESPACE_STD
|
|
|
|
|