BLI: Correct spin lock definition
The MSVC atomic function is defined for an unsigned type. Not sure why this became an issue after switch to TBB by default, maybe some CFLAGS changed to be more strict after that.
This commit is contained in:
@@ -107,7 +107,7 @@ typedef uint32_t SpinLock;
|
||||
#elif defined(__APPLE__)
|
||||
typedef ThreadMutex SpinLock;
|
||||
#elif defined(_MSC_VER)
|
||||
typedef volatile int SpinLock;
|
||||
typedef volatile unsigned int SpinLock;
|
||||
#else
|
||||
typedef pthread_spinlock_t SpinLock;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user