diff --git a/common.h b/common.h index 980099ee3..663f37e7b 100644 --- a/common.h +++ b/common.h @@ -652,6 +652,12 @@ __declspec(dllimport) int __cdecl omp_get_num_procs(void); #endif #if (__STDC_VERSION__ >= 201112L) +#if defined(C_GCC) && ( __GNUC__ < 7) +// workaround for GCC bug 65467 +#ifndef _Atomic +#define _Atomic volatile +#endif +#endif #include #else #ifndef _Atomic