From 6462ea6d2ab50844f0675983613c11a462d6597f Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Tue, 12 Sep 2017 21:26:22 +0200 Subject: [PATCH] Potential fix for Linux compilation with std::atomic. --- src/vk_mem_alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index fcee4aa..0125143 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -1226,7 +1226,7 @@ remove them if not needed. #include // for assert #include // for min, max #include // for std::mutex -#include // for std::atomic_uint32_t +#include // for std::atomic #if !defined(_WIN32) #include // for aligned_alloc() @@ -1341,7 +1341,7 @@ If providing your own implementation, you need to implement a subset of std::ato - bool compare_exchange_weak(uint32_t& expected, uint32_t desired) */ #ifndef VMA_ATOMIC_UINT32 - #define VMA_ATOMIC_UINT32 std::atomic_uint32_t + #define VMA_ATOMIC_UINT32 std::atomic #endif #ifndef VMA_BEST_FIT