Skip to content

Commit

Permalink
Fix compilation error for macOS 13.
Browse files Browse the repository at this point in the history
  • Loading branch information
PengZheng committed Dec 4, 2024
1 parent 1a96120 commit 4d5fde5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bundles/cxx_remote_services/admin/src/RemoteServiceAdmin.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
#include <version>
#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))
# undef __cpp_lib_memory_resource // Only supported on macOS 14 and iOS 17
# endif
#if __cpp_lib_memory_resource
#include <memory_resource>
#endif
Expand Down

0 comments on commit 4d5fde5

Please sign in to comment.