Skip to content

Commit 9f3e7d3

Browse files
committed
Fix compilation with Xcode 15.2
1 parent ea0b97c commit 9f3e7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/realm/util/time.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ inline std::string format_utc_time(std::time_t time, const char* format)
6969

7070
} // namespace realm::util
7171

72-
#if __cplusplus < 202002L
72+
#if __cplusplus < 202002L || (defined(__apple_build_version__) && __apple_build_version__ < 15000309)
7373
// This is a C++17 version of https://en.cppreference.com/w/cpp/chrono/duration/operator_ltlt to make
7474
// logging and comparing durations easier - especially in tests.
7575
//

0 commit comments

Comments
 (0)