aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_threads.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-21 14:07:43 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-21 14:07:43 -0500
commitbf882b037371d5ccb9eb1fc6c71199865169661b (patch)
tree39c2de688fc53f5af24ef89b425e8b7cbfd98461 /src/common/compat_threads.h
parent5da0a73838a210bac3be81baa9ade1d4ee7bf343 (diff)
downloadtor-bf882b037371d5ccb9eb1fc6c71199865169661b.tar.gz
tor-bf882b037371d5ccb9eb1fc6c71199865169661b.zip
re-run ./scripts/maint/annotate_ifdef_directives
Diffstat (limited to 'src/common/compat_threads.h')
-rw-r--r--src/common/compat_threads.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/compat_threads.h b/src/common/compat_threads.h
index b452648ea5..ce86b15e9d 100644
--- a/src/common/compat_threads.h
+++ b/src/common/compat_threads.h
@@ -159,13 +159,13 @@ typedef struct atomic_counter_t {
atomic_size_t val;
} atomic_counter_t;
#define ATOMIC_LINKAGE static
-#else
+#else /* !(defined(HAVE_STDATOMIC_H)) */
typedef struct atomic_counter_t {
tor_mutex_t mutex;
size_t val;
} atomic_counter_t;
#define ATOMIC_LINKAGE
-#endif
+#endif /* defined(HAVE_STDATOMIC_H) */
ATOMIC_LINKAGE void atomic_counter_init(atomic_counter_t *counter);
ATOMIC_LINKAGE void atomic_counter_destroy(atomic_counter_t *counter);
@@ -214,8 +214,8 @@ atomic_counter_exchange(atomic_counter_t *counter, size_t newval)
return atomic_exchange(&counter->val, newval);
}
-#else
-#endif
+#else /* !(defined(HAVE_STDATOMIC_H)) */
+#endif /* defined(HAVE_STDATOMIC_H) */
#endif /* !defined(TOR_COMPAT_THREADS_H) */