Fix compilation on gcc before 4.7 due to use of atomic builtins.
This commit is contained in:
@@ -179,7 +179,7 @@ LinkGraphJob::~LinkGraphJob()
|
||||
*/
|
||||
bool LinkGraphJob::IsJobCompleted() const
|
||||
{
|
||||
#if defined(__GNUC__) && (__cplusplus >= 201103L || defined(__STDCXX_VERSION__) || defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(__GXX_EXPERIMENTAL_CPP0X__))
|
||||
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7))
|
||||
return __atomic_load_n(&job_completed, __ATOMIC_RELAXED);
|
||||
#else
|
||||
return job_completed;
|
||||
|
Reference in New Issue
Block a user