mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-13 07:32:23 -07:00
remove windows.h from blake3
This commit is contained in:
committed by
Ryan Fleury
parent
a6432cce8e
commit
3459070f71
+4
-4
@@ -6,7 +6,6 @@
|
||||
|
||||
#if defined(IS_X86)
|
||||
#if defined(_MSC_VER)
|
||||
#include <Windows.h>
|
||||
#include <intrin.h>
|
||||
#elif defined(__GNUC__)
|
||||
#include <immintrin.h>
|
||||
@@ -15,6 +14,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined(BLAKE3_ATOMICS)
|
||||
#if defined(__has_include)
|
||||
#if __has_include(<stdatomic.h>) && !defined(_MSC_VER)
|
||||
@@ -32,9 +32,9 @@
|
||||
#define ATOMIC_LOAD(x) x
|
||||
#define ATOMIC_STORE(x, y) x = y
|
||||
#elif defined(_MSC_VER)
|
||||
#define ATOMIC_INT LONG
|
||||
#define ATOMIC_LOAD(x) InterlockedOr(&x, 0)
|
||||
#define ATOMIC_STORE(x, y) InterlockedExchange(&x, y)
|
||||
#define ATOMIC_INT long
|
||||
#define ATOMIC_LOAD(x) _InterlockedOr(&x, 0)
|
||||
#define ATOMIC_STORE(x, y) _InterlockedExchange(&x, y)
|
||||
#else
|
||||
#define ATOMIC_INT int
|
||||
#define ATOMIC_LOAD(x) x
|
||||
|
||||
Reference in New Issue
Block a user