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 f290814 commit 764bfdcCopy full SHA for 764bfdc
configure.in
@@ -47,7 +47,7 @@ AC_CACHE_CHECK([for __sync_* atomic operations], msgpack_cv_atomic_ops, [
47
AC_TRY_LINK([
48
int atomic_sub(int i) { return __sync_sub_and_fetch(&i, 1); }
49
int atomic_add(int i) { return __sync_add_and_fetch(&i, 1); }
50
- ], [], msgpack_cv_atomic_ops="yes")
+ ], [atomic_sub(1); atomic_add(1);], msgpack_cv_atomic_ops="yes")
51
])
52
if test "$msgpack_cv_atomic_ops" != "yes"; then
53
if test "$enable_cxx" = "no"; then
0 commit comments