Potential fix for Linux compilation with std::atomic.
This commit is contained in:
parent
7d1c689f1e
commit
6462ea6d2a
1 changed files with 2 additions and 2 deletions
|
@ -1226,7 +1226,7 @@ remove them if not needed.
|
||||||
#include <cassert> // for assert
|
#include <cassert> // for assert
|
||||||
#include <algorithm> // for min, max
|
#include <algorithm> // for min, max
|
||||||
#include <mutex> // for std::mutex
|
#include <mutex> // for std::mutex
|
||||||
#include <atomic> // for std::atomic_uint32_t
|
#include <atomic> // for std::atomic
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <malloc.h> // for aligned_alloc()
|
#include <malloc.h> // 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)
|
- bool compare_exchange_weak(uint32_t& expected, uint32_t desired)
|
||||||
*/
|
*/
|
||||||
#ifndef VMA_ATOMIC_UINT32
|
#ifndef VMA_ATOMIC_UINT32
|
||||||
#define VMA_ATOMIC_UINT32 std::atomic_uint32_t
|
#define VMA_ATOMIC_UINT32 std::atomic<uint32_t>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef VMA_BEST_FIT
|
#ifndef VMA_BEST_FIT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue