Skip to content

Commit 6c3519d

Browse files
authored
Merge pull request #1057 from Noxybot/fix_recursion_on_android
fix recursion in TLS init on Android
2 parents 82cd900 + fe47ec6 commit 6c3519d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/options.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,14 +425,14 @@ static mi_decl_noinline void mi_recurse_exit_prim(void) {
425425
}
426426

427427
static bool mi_recurse_enter(void) {
428-
#if defined(__APPLE__) || defined(MI_TLS_RECURSE_GUARD)
428+
#if defined(__APPLE__) || defined(__ANDROID__) || defined(MI_TLS_RECURSE_GUARD)
429429
if (_mi_preloading()) return false;
430430
#endif
431431
return mi_recurse_enter_prim();
432432
}
433433

434434
static void mi_recurse_exit(void) {
435-
#if defined(__APPLE__) || defined(MI_TLS_RECURSE_GUARD)
435+
#if defined(__APPLE__) || defined(__ANDROID__) || defined(MI_TLS_RECURSE_GUARD)
436436
if (_mi_preloading()) return;
437437
#endif
438438
mi_recurse_exit_prim();

0 commit comments

Comments
 (0)