From: Bruno Haible Date: Wed, 12 Aug 2026 04:27:10 +0000 (+0200) Subject: hamt: Fix compilation error (regression 2026-08-10). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fd62ba9bd199ee80173dafa63abb77a6767765b;p=thirdparty%2Fgnulib.git hamt: Fix compilation error (regression 2026-08-10). * lib/hamt.c (ref_counter): Use GL_HAMT_ATOMIC instead of GL_HAMT_THREAD_SAFE. --- diff --git a/ChangeLog b/ChangeLog index 11fe00ddfb..2f90aa99c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2026-08-12 Bruno Haible + + hamt: Fix compilation error (regression 2026-08-10). + * lib/hamt.c (ref_counter): Use GL_HAMT_ATOMIC instead of + GL_HAMT_THREAD_SAFE. + 2026-08-11 Bruno Haible tests: Make last patch side-effect free. diff --git a/lib/hamt.c b/lib/hamt.c index fa4bed98d1..095a47665b 100644 --- a/lib/hamt.c +++ b/lib/hamt.c @@ -35,11 +35,7 @@ A thread must not modify an entry or its children (!) if its reference count implies that the entry is shared by at least two hamts. */ -typedef -#if GL_HAMT_THREAD_SAFE -_Atomic -#endif -size_t ref_counter; +typedef GL_HAMT_ATOMIC (size_t) ref_counter; /***************/ /* Entry Types */