Add missing line continuations for memory_resource opt-out on Apple systems

And add some additional parenthesis for extra safety.

Amends f7c8ff511c30dc4310a72b3da4b4a345efe1fba0.

Pick-to: 6.6 6.5
Change-Id: I4ca8b70f6adb876a10f82685ba9800021218d418
Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
This commit is contained in:
Tor Arne Vestbø 2023-06-08 15:29:27 +02:00
parent 727b6256c1
commit e84c0df50f

View File

@ -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)