Skip to content

Commit

Permalink
vk_mem_alloc.h: Patch for C++14 compilation on Linux, BSDs
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jun 10, 2024
1 parent 6a869e1 commit 62fa5dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ivis_opengl/3rdparty/vk_mem_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2956,6 +2956,9 @@ static void* vma_aligned_alloc(size_t alignment, size_t size)
#else
static void* vma_aligned_alloc(size_t alignment, size_t size)
{
# ifndef VMA_SYSTEM_ALIGNED_MALLOC
#error No available implementation for vma_aligned_alloc
# endif
VMA_ASSERT(0 && "Could not implement aligned_alloc automatically. Please enable C++17 or later in your compiler or provide custom implementation of macro VMA_SYSTEM_ALIGNED_MALLOC (and VMA_SYSTEM_ALIGNED_FREE if needed) using the API of your system.");
return VMA_NULL;
}
Expand Down

0 comments on commit 62fa5dd

Please sign in to comment.