]> git.saurik.com Git - apple/libplatform.git/commitdiff
libplatform-161.50.1.tar.gz macos-10134 macos-10135 macos-10136 v161.50.1
authorApple <opensource@apple.com>
Wed, 15 Aug 2018 19:38:39 +0000 (19:38 +0000)
committerApple <opensource@apple.com>
Wed, 15 Aug 2018 19:38:39 +0000 (19:38 +0000)
include/libkern/OSAtomicDeprecated.h
private/os/lock_private.h

index 278e04ef5a941cc91e62bf10b3969e77382d2119..aebf48248a72ab01bc78cd56df2731f3fac5c14c 100644 (file)
@@ -766,7 +766,7 @@ __END_DECLS
 
 #ifdef __cplusplus
 extern "C++" {
-#if !(__has_include(<atomic>) && __has_feature(cxx_atomic))
+#if !(__has_include(<atomic>) && __has_extension(cxx_atomic))
 #error Cannot use inlined OSAtomic without <atomic> and C++11 atomics
 #endif
 #include <atomic>
index 00329e26d88f79424f939b06fd526c8ea8bbecdf..92fd61b0e6cded002279920180e42f77d2742064 100644 (file)
@@ -440,7 +440,7 @@ OS_ASSUME_NONNULL_END
 
 #ifdef __cplusplus
 extern "C++" {
-#if !(__has_include(<atomic>) && __has_feature(cxx_atomic))
+#if !(__has_include(<atomic>) && __has_extension(cxx_atomic))
 #error Cannot use inline os_unfair_lock without <atomic> and C++11 atomics
 #endif
 #include <atomic>