summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/clblast.h12
-rw-r--r--include/clblast_c.h12
2 files changed, 16 insertions, 8 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
diff --git a/include/clblast_c.h b/include/clblast_c.h
index a13b8e64..6a454015 100644
--- a/include/clblast_c.h
+++ b/include/clblast_c.h
@@ -25,10 +25,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