don't warn in acl_atomic.c for MacOS

This commit is contained in:
shuxin   zheng 2020-07-13 16:05:14 +08:00
parent 47bf0b1149
commit 2e70cef3e7

View File

@ -48,19 +48,21 @@
#error "x86_64"
#endif
// don't use atomic for IOS and MacOS
#if defined(ACL_MACOSX)
# define HAS_ATOMIC
#endif
*/
/* don't use atomic for IOS and MacOS */
#if defined(ACL_MACOSX)
# undef HAS_ATOMIC
#endif
#if defined(ACL_WINDOWS)
# define HAS_ATOMIC
#endif
/*
#if !defined(HAS_ATOMIC)
# pragma message "Atomic not support, using thread mutex instead!"
#endif
*/
struct ACL_ATOMIC {
void *value;