Use _Atomic type for socket.sending and socket.udpconnecting. See #1317

This commit is contained in:
Cloud Wu
2021-01-11 16:57:25 +08:00
parent c0e3421462
commit 1ed4fdf94d
4 changed files with 13 additions and 11 deletions

View File

@@ -8,7 +8,7 @@
#ifndef USE_PTHREAD_LOCK
#ifdef NO_STDATOMIC
#ifdef __STDC_NO_ATOMICS__
#define atomic_flag_ int
#define ATOMIC_FLAG_INIT_ 0