We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aa56c5 commit 967da0bCopy full SHA for 967da0b
1 file changed
src/libipc/mem/new_delete_resource.cpp
@@ -36,7 +36,7 @@ void *new_delete_resource::allocate(std::size_t bytes, std::size_t alignment) no
36
log.error("invalid bytes = ", bytes, ", alignment = ", alignment);
37
return nullptr;
38
}
39
-#if defined(LIBIPC_CPP_17)
+#if defined(LIBIPC_CPP_17) && !defined(_MSC_VER)
40
/// \see https://en.cppreference.com/w/cpp/memory/c/aligned_alloc
41
/// \remark The size parameter must be an integral multiple of alignment.
42
return std::aligned_alloc(alignment, ipc::round_up(bytes, alignment));
0 commit comments