Add missing line continuations for memory_resource opt-out on Apple systems
And add some additional parenthesis for extra safety.
Amends f7c8ff511c.
Pick-to: 6.6 6.5
Change-Id: I4ca8b70f6adb876a10f82685ba9800021218d418
Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
bb10
parent
727b6256c1
commit
e84c0df50f
|
|
@ -903,9 +903,9 @@
|
|||
// Also disable <atomic>, since it's clearly not there
|
||||
# undef Q_COMPILER_ATOMICS
|
||||
# endif
|
||||
# if defined(__cpp_lib_memory_resource)
|
||||
&& (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 140000
|
||||
|| defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 170000)
|
||||
# if defined(__cpp_lib_memory_resource) \
|
||||
&& ((defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 140000) \
|
||||
|| (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 170000))
|
||||
# undef __cpp_lib_memory_resource // Only supported on macOS 14 and iOS 17
|
||||
# endif
|
||||
# endif // defined(Q_CC_CLANG) && defined(Q_OS_DARWIN)
|
||||
|
|
|
|||
Loading…
Reference in New Issue