From 9e1cb6294210a5b836151c6a91fae6f3dba94bf3 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 29 Nov 2017 02:57:28 +0300 Subject: [PATCH] Adjust AO_HAVE_x check to match AO_fetch_and_add primitive variant used (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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/subthread_create.c b/tests/subthread_create.c index d83a76a..059c47a 100644 --- a/tests/subthread_create.c +++ b/tests/subthread_create.c @@ -16,7 +16,7 @@ #include -#ifdef AO_HAVE_fetch_and_add +#ifdef AO_HAVE_fetch_and_add1 #ifdef GC_PTHREADS # include @@ -150,4 +150,4 @@ int main(void) return 0; } -#endif /* !AO_HAVE_fetch_and_add */ +#endif /* !AO_HAVE_fetch_and_add1 */ -- 2.7.4