Browse Source

Merge pull request #913 from dpfoose/develop

Small change to allow compiling with USE_OPENMP on MSVC
tags/v0.2.19^2
Zhang Xianyi GitHub 9 years ago
parent
commit
437c7d64f2
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      common.h

+ 5
- 0
common.h View File

@@ -626,9 +626,14 @@ 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);
#else
__declspec(dllimport) int __cdecl omp_in_parallel(void);
__declspec(dllimport) int __cdecl omp_get_num_procs(void);
#endif
#else
#ifdef __ELF__
int omp_in_parallel (void) __attribute__ ((weak));
int omp_get_num_procs(void) __attribute__ ((weak));


Loading…
Cancel
Save