diff options
Diffstat (limited to 'include/clblast.h')
-rw-r--r-- | include/clblast.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clblast.h b/include/clblast.h index e1d4f25b..0f52b2f9 100644 --- a/include/clblast.h +++ b/include/clblast.h @@ -27,8 +27,8 @@ // Exports library functions under Windows when building a DLL. See also: // https://msdn.microsoft.com/en-us/library/a90k134d.aspx -#ifdef _WIN32 - #ifdef COMPILING_DLL +#if defined(_WIN32) && defined(CLBLAST_DLL) + #if defined(COMPILING_DLL) #define PUBLIC_API __declspec(dllexport) #else #define PUBLIC_API __declspec(dllimport) |