summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sqfs/predef.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sqfs/predef.h b/include/sqfs/predef.h
index 3254186..8a456d8 100644
--- a/include/sqfs/predef.h
+++ b/include/sqfs/predef.h
@@ -32,7 +32,9 @@
#include <stdint.h>
#if defined(_WIN32) || defined(__CYGWIN__)
- #ifdef SQFS_BUILDING_DLL
+ #if defined(SQFS_STATIC)
+ #define SQFS_API
+ #elif defined(SQFS_BUILDING_DLL)
#if defined(__GNUC__) || defined(__clang__)
#define SQFS_API __attribute__ ((dllexport))
#else