]> granicus.if.org Git - gc/commitdiff
tests: Fix subthread_create.c by defining AO_REQUIRE_CAS
authorIvan Maidanski <ivmai@mail.ru>
Sun, 4 Mar 2012 10:20:10 +0000 (14:20 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 4 Mar 2012 10:20:10 +0000 (14:20 +0400)
* subthread_create.c (AO_REQUIRE_CAS): Define in case of PARALLEL_MARK
(guaranteeing AO_fetch_and_add to be defined at least if GC is built
with parallel marking enabled).

tests/subthread_create.c

index 8872209286a1a3c7fa87669f4677a7d0a8dbe7b2..8b7b08791f6835bba58038eace7223216ac744ce 100644 (file)
@@ -4,6 +4,9 @@
 #endif
 #include "gc.h"
 
+#ifdef PARALLEL_MARK
+# define AO_REQUIRE_CAS
+#endif
 #include "atomic_ops.h"
 
 #include <stdio.h>