aboutsummaryrefslogtreecommitdiff
path: root/src/lib/thread/compat_threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/thread/compat_threads.c')
-rw-r--r--src/lib/thread/compat_threads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/thread/compat_threads.c b/src/lib/thread/compat_threads.c
index 24129946b2..7f1970af45 100644
--- a/src/lib/thread/compat_threads.c
+++ b/src/lib/thread/compat_threads.c
@@ -57,7 +57,7 @@ in_main_thread(void)
return main_thread_id == tor_get_thread_id();
}
-#ifndef HAVE_STDATOMIC_H
+#ifndef HAVE_WORKING_STDATOMIC
/** Initialize a new atomic counter with the value 0 */
void
atomic_counter_init(atomic_counter_t *counter)
@@ -108,4 +108,4 @@ atomic_counter_exchange(atomic_counter_t *counter, size_t newval)
tor_mutex_release(&counter->mutex);
return oldval;
}
-#endif /* !defined(HAVE_STDATOMIC_H) */
+#endif /* !defined(HAVE_WORKING_STDATOMIC) */