summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-31 03:19:33 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-31 03:19:33 +0400
commit4d6b5fc65f22ed704f05e04d41771fb4579ee5a8 (patch)
tree9c257c0c323bb4a8c87e195a35cb665ee78f10f1
parent100c963bd384f2c9f594263f0d241c3038a37f3b (diff)
downloadkit-4d6b5fc65f22ed704f05e04d41771fb4579ee5a8.zip
test
-rw-r--r--source/kit/atomic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/kit/atomic.h b/source/kit/atomic.h
index 8e3ceb8..23962a2 100644
--- a/source/kit/atomic.h
+++ b/source/kit/atomic.h
@@ -9,8 +9,11 @@ extern "C" {
#ifndef _MSC_VER
# include <stdatomic.h>
+
# define KIT_ATOMIC(type_) type_ _Atomic
#else
+# include <assert.h>
+
# define KIT_ATOMIC(type_) type_ volatile
enum {