1 #ifndef ATOMIC_COMPAT_H
2 #define ATOMIC_COMPAT_H
4 #if __GNUC__ == 4 && __GNUC_MINOR__ == 4
5 # include <cstdatomic> // <atomic> is named <cstdatomic> in gcc 4.4
7 template<typename _Tp> // fix missing definition in gcc 4.4
9 atomic<_Tp*>::store(_Tp* __v, memory_order __m) volatile
10 { atomic_address::store(__v, __m); }
16 #endif // !ATOMIC_COMPAT_H