We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5959f2 commit 06d4376Copy full SHA for 06d4376
common.h
@@ -649,12 +649,21 @@ int omp_get_num_procs(void);
649
__declspec(dllimport) int __cdecl omp_in_parallel(void);
650
__declspec(dllimport) int __cdecl omp_get_num_procs(void);
651
#endif
652
+
653
#if (__STDC_VERSION__ >= 201112L)
654
+#if defined(C_GCC) && ( __GNUC__ < 7)
655
+// workaround for GCC bug 65467
656
#ifndef _Atomic
657
#define _Atomic volatile
658
659
+#endif
660
#include <stdatomic.h>
661
+#else
662
+#ifndef _Atomic
663
+#define _Atomic volatile
664
665
666
667
#else
668
#ifdef __ELF__
669
int omp_in_parallel (void) __attribute__ ((weak));
0 commit comments