summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-10-15 17:11:08 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-10-15 17:11:08 +0200
commit53deed298facc005f71e9ec2a96d5c4e90d826af (patch)
tree7986ea51a732750bc84982fa0fde25b539a9b79b /include
parenta63f57297b8bcce88084acd31c2a82353fdc9052 (diff)
Added documentation and minor refactoring for the recent support of static library compilation
Diffstat (limited to 'include')
-rw-r--r--include/clblast.h14
-rw-r--r--include/clblast_c.h14
2 files changed, 10 insertions, 18 deletions
diff --git a/include/clblast.h b/include/clblast.h
index 335ca8e3..0f52b2f9 100644
--- a/include/clblast.h
+++ b/include/clblast.h
@@ -27,15 +27,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
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