mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 11:57:43 +08:00
don't warn in acl_atomic.c for MacOS
This commit is contained in:
parent
47bf0b1149
commit
2e70cef3e7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user