diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-10-15 17:11:08 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-10-15 17:11:08 +0200 |
commit | 53deed298facc005f71e9ec2a96d5c4e90d826af (patch) | |
tree | 7986ea51a732750bc84982fa0fde25b539a9b79b /include/clblast_c.h | |
parent | a63f57297b8bcce88084acd31c2a82353fdc9052 (diff) |
Added documentation and minor refactoring for the recent support of static library compilation
Diffstat (limited to 'include/clblast_c.h')
-rw-r--r-- | include/clblast_c.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/include/clblast_c.h b/include/clblast_c.h index 6a454015..33fb4acf 100644 --- a/include/clblast_c.h +++ b/include/clblast_c.h @@ -24,15 +24,11 @@ // Exports library functions under Windows when building a DLL. See also: // https://msdn.microsoft.com/en-us/library/a90k134d.aspx -#ifdef _WIN32 - #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 +#if defined(_WIN32) && defined(CLBLAST_DLL) + #if defined(COMPILING_DLL) + #define PUBLIC_API __declspec(dllexport) + #else + #define PUBLIC_API __declspec(dllimport) #endif #else #define PUBLIC_API |