diff options
Diffstat (limited to 'include/clblast.h')
-rw-r--r-- | include/clblast.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/clblast.h b/include/clblast.h index e1d4f25b..335ca8e3 100644 --- a/include/clblast.h +++ b/include/clblast.h @@ -28,10 +28,14 @@ // 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 - #define PUBLIC_API __declspec(dllexport) - #else - #define PUBLIC_API __declspec(dllimport) + #if defined(CLBLAST_DLL) + #if defined(COMPILING_DLL) + #define PUBLIC_API __declspec(dllexport) + #else + #define PUBLIC_API __declspec(dllimport) + #endif + #elif defined(CLBLAST_STATIC) + #define PUBLIC_API #endif #else #define PUBLIC_API |