From 2f9d0c805ac694f9d8358f759fdf3da5ad35a47d Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Wed, 14 Jun 2023 23:05:40 +0800 Subject: [PATCH] include stdint.h for uintptr_t --- skynet-src/atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skynet-src/atomic.h b/skynet-src/atomic.h index 0ce185e3..8e3a9e40 100644 --- a/skynet-src/atomic.h +++ b/skynet-src/atomic.h @@ -1,11 +1,11 @@ #ifndef SKYNET_ATOMIC_H #define SKYNET_ATOMIC_H -#ifdef __STDC_NO_ATOMICS__ - #include #include +#ifdef __STDC_NO_ATOMICS__ + #define ATOM_INT volatile int #define ATOM_POINTER volatile uintptr_t #define ATOM_SIZET volatile size_t