(code refactoring of commit
95e074727)
* tests/disclaim_weakmap_test.c [!GC_PTHREADS] (AO_t): Define (as
GC_word).
* tests/disclaim_weakmap_test.c (AO_t): Do not check whether AO_CLEAR
is defined; remove comment.
#else
# undef NTHREADS
# define NTHREADS 1
+# define AO_t GC_word
#endif
#ifdef LINT2
} \
} while (0)
-/* Define AO primitives in case of no threads support. */
-#ifndef AO_CLEAR
- /* AO_t not defined. */
-# define AO_t GC_word
-#endif
#ifndef AO_HAVE_fetch_and_add1
# define AO_fetch_and_add1(p) ((*(p))++)
/* This is used only to update counters. */