summaryrefslogtreecommitdiff
path: root/include/clblast.h
diff options
context:
space:
mode:
authorShehzan Mohammed <shehzan@arrayfire.com>2016-10-14 18:45:34 -0400
committerShehzan Mohammed <shehzan@arrayfire.com>2016-10-14 18:45:34 -0400
commit0d958bf3b3485a17071d7d4d17030f75f28412e4 (patch)
tree8c3d53bf7a4907cca195a9930a5f45ecd3b7ad41 /include/clblast.h
parentc0482ace6c78ddce0a2fcf37020302a41fbc5ee9 (diff)
Fixes for static lib compilation on Windows
Diffstat (limited to 'include/clblast.h')
-rw-r--r--include/clblast.h12
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