Merge pull request #1598 from martin-frbg/issue1593-2

Restore _Atomic define before stdatomic.h for old gcc
This commit is contained in:
Martin Kroeker 2018-06-06 12:48:26 +02:00 committed by GitHub
commit 0218b884c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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 <stdatomic.h>
#else
#ifndef _Atomic