Skip to content

Commit f07950c

Browse files
committed
add the same test as commit:764bfdcb9f for __gnu_cxx::__exchange_and_add
refs #8
1 parent f8c4125 commit f07950c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ add CFLAGS="-march=i686" and CXXFLAGS="-march=i686" options to ./configure as fo
6565
#include <bits/atomicity.h>
6666
int atomic_sub(int i) { return __gnu_cxx::__exchange_and_add(&i, -1) - 1; }
6767
int atomic_add(int i) { return __gnu_cxx::__exchange_and_add(&i, 1) + 1; }
68-
], [], msgpack_cv_gcc_cxx_atomic_ops="yes")
68+
], [atomic_sub(1); atomic_add(1);], msgpack_cv_gcc_cxx_atomic_ops="yes")
6969
])
7070
AC_LANG_POP([C++])
7171

0 commit comments

Comments
 (0)