Skip to content

Commit 4d5fde5

Browse files
committed
Fix compilation error for macOS 13.
1 parent 1a96120 commit 4d5fde5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bundles/cxx_remote_services/admin/src/RemoteServiceAdmin.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
#include <version>
2929
#endif
3030

31+
# if defined(__cpp_lib_memory_resource) \
32+
&& ((defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 140000) \
33+
|| (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 170000))
34+
# undef __cpp_lib_memory_resource // Only supported on macOS 14 and iOS 17
35+
# endif
3136
#if __cpp_lib_memory_resource
3237
#include <memory_resource>
3338
#endif

0 commit comments

Comments
 (0)