From 354a976a59f1280c5403b8de37587baf53527b67 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 5 Jun 2018 10:31:34 +0200 Subject: [PATCH] Fix inverted condition in _Atomic declaration fixes #1593 --- common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common.h b/common.h index 123e3dee7..980099ee3 100644 --- a/common.h +++ b/common.h @@ -642,6 +642,7 @@ void gotoblas_profile_init(void); void gotoblas_profile_quit(void); #ifdef USE_OPENMP + #ifndef C_MSVC int omp_in_parallel(void); int omp_get_num_procs(void); @@ -649,12 +650,15 @@ int omp_get_num_procs(void); __declspec(dllimport) int __cdecl omp_in_parallel(void); __declspec(dllimport) int __cdecl omp_get_num_procs(void); #endif + #if (__STDC_VERSION__ >= 201112L) +#include +#else #ifndef _Atomic #define _Atomic volatile #endif -#include #endif + #else #ifdef __ELF__ int omp_in_parallel (void) __attribute__ ((weak));