mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 22:08:41 +00: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(IS_X86)
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#include <Windows.h>
|
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
@@ -15,6 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if !defined(BLAKE3_ATOMICS)
|
#if !defined(BLAKE3_ATOMICS)
|
||||||
#if defined(__has_include)
|
#if defined(__has_include)
|
||||||
#if __has_include(<stdatomic.h>) && !defined(_MSC_VER)
|
#if __has_include(<stdatomic.h>) && !defined(_MSC_VER)
|
||||||
@@ -32,9 +32,9 @@
|
|||||||
#define ATOMIC_LOAD(x) x
|
#define ATOMIC_LOAD(x) x
|
||||||
#define ATOMIC_STORE(x, y) x = y
|
#define ATOMIC_STORE(x, y) x = y
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#define ATOMIC_INT LONG
|
#define ATOMIC_INT long
|
||||||
#define ATOMIC_LOAD(x) InterlockedOr(&x, 0)
|
#define ATOMIC_LOAD(x) _InterlockedOr(&x, 0)
|
||||||
#define ATOMIC_STORE(x, y) InterlockedExchange(&x, y)
|
#define ATOMIC_STORE(x, y) _InterlockedExchange(&x, y)
|
||||||
#else
|
#else
|
||||||
#define ATOMIC_INT int
|
#define ATOMIC_INT int
|
||||||
#define ATOMIC_LOAD(x) x
|
#define ATOMIC_LOAD(x) x
|
||||||
|
|||||||
Reference in New Issue
Block a user