]> granicus.if.org Git - gc/commitdiff
Adjust AO_HAVE_x check to match AO_fetch_and_add primitive variant used
authorIvan Maidanski <ivmai@mail.ru>
Tue, 28 Nov 2017 23:57:28 +0000 (02:57 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 15 Dec 2017 21:08:57 +0000 (00:08 +0300)
(fix commit 6043293)

* tests/subthread_create.c: Replace "ifdef AO_HAVE_fetch_and_add" with
"ifdef AO_HAVE_fetch_and_add1".

tests/subthread_create.c

index 67573f3a0b66df8945f0dfe39906eaf96a6a7425..e30eae53922ea82e0c7e834c65f71a8c08a62256 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <stdio.h>
 
-#ifdef AO_HAVE_fetch_and_add
+#ifdef AO_HAVE_fetch_and_add1
 
 #ifdef GC_PTHREADS
 # include <pthread.h>
@@ -150,4 +150,4 @@ int main(void)
   return 0;
 }
 
-#endif /* !AO_HAVE_fetch_and_add */
+#endif /* !AO_HAVE_fetch_and_add1 */