include stdint.h for uintptr_t

This commit is contained in:
Cloud Wu
2023-06-14 23:05:40 +08:00
parent 4893fa39ee
commit 2f9d0c805a

View File

@@ -1,11 +1,11 @@
#ifndef SKYNET_ATOMIC_H
#define SKYNET_ATOMIC_H
#ifdef __STDC_NO_ATOMICS__
#include <stddef.h>
#include <stdint.h>
#ifdef __STDC_NO_ATOMICS__
#define ATOM_INT volatile int
#define ATOM_POINTER volatile uintptr_t
#define ATOM_SIZET volatile size_t