diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-06-30 10:49:17 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-06-30 10:49:17 +0200 |
commit | b330ab086640382157688ea6b9633b5f0a22dac3 (patch) | |
tree | a6943773d4b7d83e1a52ec27d787912736a9d54d /include/clblast_c.h | |
parent | cd74aaac5290d14ba03ad13bb2fffa1040ccff5d (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.h | 6 |
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 |