diff --git a/common.h b/common.h index 86c33b2fd..123e3dee7 100644 --- a/common.h +++ b/common.h @@ -649,6 +649,12 @@ 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) +#ifndef _Atomic +#define _Atomic volatile +#endif +#include +#endif #else #ifdef __ELF__ int omp_in_parallel (void) __attribute__ ((weak)); diff --git a/driver/others/blas_server_omp.c b/driver/others/blas_server_omp.c index cc00092cd..fccdb4320 100644 --- a/driver/others/blas_server_omp.c +++ b/driver/others/blas_server_omp.c @@ -36,12 +36,6 @@ /* or implied, of The University of Texas at Austin. */ /*********************************************************************/ -#if __STDC_VERSION__ >= 201112L -#ifndef _Atomic -#define _Atomic volatile -#endif -#include -#endif #include #include #include