You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Some versions of gcc/libstdc++ require linking with -latomic if
2
+
# using the C++ atomic library.
3
+
#
4
+
# Sourced from http://bugs.debian.org/797228
5
+
6
+
m4_define([_CHECK_ATOMIC_testbody], [[
7
+
#include <atomic>
8
+
#include <cstdint>
9
+
10
+
int main() {
11
+
std::atomic<int64_t> a{};
12
+
13
+
int64_t v = 5;
14
+
int64_t r = a.fetch_add(v);
15
+
return static_cast<int>(r);
16
+
}
17
+
]])
18
+
19
+
AC_DEFUN([CHECK_ATOMIC], [
20
+
21
+
AC_LANG_PUSH(C++)
22
+
23
+
AC_MSG_CHECKING([whether std::atomic can be used without link library])
0 commit comments