Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an error when compiling a watchOS target not supporting Thread-local storage. #5188

Merged
merged 5 commits into from
Feb 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add condition only for watchOS simulator target
  • Loading branch information
dianaafanador3 committed Jan 26, 2022
commit 759cdb8c010d9dc86a373f2bfe5bed1a0f3f8647
2 changes: 1 addition & 1 deletion src/realm/impl/simulated_failure.cpp
Original file line number Diff line number Diff line change
@@ -168,7 +168,7 @@ bool SimulatedFailure::do_check_trigger(FailureType failure_type) noexcept
return false;
}

#if (REALM_ARCHITECTURE_X86_32 && REALM_IOS) || REALM_WATCHOS
#if (REALM_ARCHITECTURE_X86_32 && REALM_IOS) || (REALM_ARCHITECTURE_X86_64 && REALM_WATCHOS)
bool (*s_mmap_predicate)(size_t);
#else
thread_local bool (*s_mmap_predicate)(size_t);