From f07950c60a43806b24d29e72c55c450e4cb70bdd Mon Sep 17 00:00:00 2001 From: Nobuyuki Kubota Date: Tue, 9 Apr 2013 18:14:23 -0700 Subject: [PATCH] add the same test as commit:764bfdcb9f for __gnu_cxx::__exchange_and_add refs #8 --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 3a79f257..e7540187 100644 --- a/configure.in +++ b/configure.in @@ -65,7 +65,7 @@ add CFLAGS="-march=i686" and CXXFLAGS="-march=i686" options to ./configure as fo #include int atomic_sub(int i) { return __gnu_cxx::__exchange_and_add(&i, -1) - 1; } int atomic_add(int i) { return __gnu_cxx::__exchange_and_add(&i, 1) + 1; } - ], [], msgpack_cv_gcc_cxx_atomic_ops="yes") + ], [atomic_sub(1); atomic_add(1);], msgpack_cv_gcc_cxx_atomic_ops="yes") ]) AC_LANG_POP([C++])