summaryrefslogtreecommitdiff
path: root/include/clblast_c.h
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-06-30 10:49:17 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-06-30 10:49:17 +0200
commitb330ab086640382157688ea6b9633b5f0a22dac3 (patch)
treea6943773d4b7d83e1a52ec27d787912736a9d54d /include/clblast_c.h
parentcd74aaac5290d14ba03ad13bb2fffa1040ccff5d (diff)
Added declspec(dllexport) to ClearCache and FillCache, and added declspec(dllimport) when not building the library
Diffstat (limited to 'include/clblast_c.h')
-rw-r--r--include/clblast_c.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clblast_c.h b/include/clblast_c.h
index b92febac..a13b8e64 100644
--- a/include/clblast_c.h
+++ b/include/clblast_c.h
@@ -25,7 +25,11 @@
// Exports library functions under Windows when building a DLL. See also:
// https://msdn.microsoft.com/en-us/library/a90k134d.aspx
#ifdef _WIN32
- #define PUBLIC_API __declspec(dllexport)
+ #ifdef COMPILING_DLL
+ #define PUBLIC_API __declspec(dllexport)
+ #else
+ #define PUBLIC_API __declspec(dllimport)
+ #endif
#else
#define PUBLIC_API
#endif