]> AND Private Git Repository - loba.git/blob - atomic_compat.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Add copyright, and license files.
[loba.git] / atomic_compat.h
1 #ifndef ATOMIC_COMPAT_H
2 #define ATOMIC_COMPAT_H
3
4 #if __GNUC__ == 4 && __GNUC_MINOR__ == 4
5 #  include <cstdatomic>         // <atomic> is named <cstdatomic> in gcc 4.4
6
7 template<typename _Tp>          // fix missing definition in gcc 4.4
8 void
9 atomic<_Tp*>::store(_Tp* __v, memory_order __m) volatile
10 { atomic_address::store(__v, __m); }
11
12 #else
13 #  include <atomic>
14 #endif
15
16 #endif // !ATOMIC_COMPAT_H
17
18 // Local variables:
19 // mode: c++
20 // End: