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 8872209..8b7b087 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>