Skip to content

Commit 967da0b

Browse files
committed
msvc: avoid use of std::aligned_alloc as not available
1 parent 7aa56c5 commit 967da0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libipc/mem/new_delete_resource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void *new_delete_resource::allocate(std::size_t bytes, std::size_t alignment) no
3636
log.error("invalid bytes = ", bytes, ", alignment = ", alignment);
3737
return nullptr;
3838
}
39-
#if defined(LIBIPC_CPP_17)
39+
#if defined(LIBIPC_CPP_17) && !defined(_MSC_VER)
4040
/// \see https://en.cppreference.com/w/cpp/memory/c/aligned_alloc
4141
/// \remark The size parameter must be an integral multiple of alignment.
4242
return std::aligned_alloc(alignment, ipc::round_up(bytes, alignment));

0 commit comments

Comments
 (0)