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>
Tue, 28 Nov 2017 23:57:28 +0000 (02:57 +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 d83a76a..059c47a 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 */