Skip to content

Commit 53457f2

Browse files
author
zhiyong.dang
committed
move _Atomic define to common.h
1 parent 458e3af commit 53457f2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,12 @@ int omp_get_num_procs(void);
649649
__declspec(dllimport) int __cdecl omp_in_parallel(void);
650650
__declspec(dllimport) int __cdecl omp_get_num_procs(void);
651651
#endif
652+
#if (__STDC_VERSION__ >= 201112L)
653+
#ifndef _Atomic
654+
#define _Atomic volatile
655+
#endif
656+
#include <stdatomic.h>
657+
#endif
652658
#else
653659
#ifdef __ELF__
654660
int omp_in_parallel (void) __attribute__ ((weak));

driver/others/blas_server_omp.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@
3636
/* or implied, of The University of Texas at Austin. */
3737
/*********************************************************************/
3838

39-
#if __STDC_VERSION__ >= 201112L
40-
#ifndef _Atomic
41-
#define _Atomic volatile
42-
#endif
43-
#include <stdatomic.h>
44-
#endif
4539
#include <stdbool.h>
4640
#include <stdio.h>
4741
#include <stdlib.h>

0 commit comments

Comments
 (0)