From 1d9b1fc56619798291672077bc1453bcc0d3cffe Mon Sep 17 00:00:00 2001 From: Marcus Cuda Date: Tue, 3 Mar 2015 19:12:26 +0200 Subject: [PATCH] changed #ifdef GCC to #ifdef __cplusplus --- src/NativeProviders/MKL/blas.c | 4 ++-- src/NativeProviders/MKL/memory.c | 6 +++--- src/NativeProviders/MKL/vector_functions.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/NativeProviders/MKL/blas.c b/src/NativeProviders/MKL/blas.c index 88c054f2..45fa4c55 100644 --- a/src/NativeProviders/MKL/blas.c +++ b/src/NativeProviders/MKL/blas.c @@ -1,7 +1,7 @@ #include "mkl_cblas.h" #include "wrapper_common.h" -#if GCC +#if __cplusplus extern "C" { #endif DLLEXPORT void s_axpy(const MKL_INT n, const float alpha, const float x[], float y[]){ @@ -84,6 +84,6 @@ DLLEXPORT void z_matrix_multiply(CBLAS_TRANSPOSE transA, CBLAS_TRANSPOSE transB, cblas_zgemm(CblasColMajor, transA, transB, m, n, k, &alpha, x, lda, y, ldb, &beta, c, m); } -#if GCC +#if __cplusplus } #endif diff --git a/src/NativeProviders/MKL/memory.c b/src/NativeProviders/MKL/memory.c index b5148d7a..34f5f3f3 100644 --- a/src/NativeProviders/MKL/memory.c +++ b/src/NativeProviders/MKL/memory.c @@ -1,7 +1,7 @@ #include "wrapper_common.h" #include "mkl.h" -#if GCC +#if __cplusplus extern "C" { #endif @@ -25,6 +25,6 @@ DLLEXPORT MKL_INT64 peak_mem_usage(int mode) { return mkl_peak_mem_usage(mode); } -#if GCC +#if __cplusplus } -#endif \ No newline at end of file +#endif diff --git a/src/NativeProviders/MKL/vector_functions.c b/src/NativeProviders/MKL/vector_functions.c index df05d487..c1bea343 100644 --- a/src/NativeProviders/MKL/vector_functions.c +++ b/src/NativeProviders/MKL/vector_functions.c @@ -1,7 +1,7 @@ #include "mkl_vml.h" #include "wrapper_common.h" -#if GCC +#if __cplusplus extern "C" { #endif DLLEXPORT void s_vector_add( const int n, const float x[], const float y[], float result[] ){ @@ -67,6 +67,6 @@ DLLEXPORT void z_vector_multiply( const int n, const MKL_Complex16 x[], const MK DLLEXPORT void z_vector_divide( const int n, const MKL_Complex16 x[], const MKL_Complex16 y[], MKL_Complex16 result[] ){ vzDiv( n, x, y, result ); } -#if GCC +#if __cplusplus } #endif