We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8c4125 commit f07950cCopy full SHA for f07950c
configure.in
@@ -65,7 +65,7 @@ add CFLAGS="-march=i686" and CXXFLAGS="-march=i686" options to ./configure as fo
65
#include <bits/atomicity.h>
66
int atomic_sub(int i) { return __gnu_cxx::__exchange_and_add(&i, -1) - 1; }
67
int atomic_add(int i) { return __gnu_cxx::__exchange_and_add(&i, 1) + 1; }
68
- ], [], msgpack_cv_gcc_cxx_atomic_ops="yes")
+ ], [atomic_sub(1); atomic_add(1);], msgpack_cv_gcc_cxx_atomic_ops="yes")
69
])
70
AC_LANG_POP([C++])
71
0 commit comments