diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/devicedb.c | 6 | ||||
| -rw-r--r-- | src/libirecovery.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/devicedb.c b/src/devicedb.c index 36936c4..15c1112 100644 --- a/src/devicedb.c +++ b/src/devicedb.c @@ -51,7 +51,11 @@ #ifdef IRECV_STATIC #define IRECV_API #elif defined(_WIN32) - #define IRECV_API __declspec( dllexport ) + #ifdef DLL_EXPORT + #define IRECV_API __declspec( dllexport ) + #else + #define IRECV_API + #endif #else #if __GNUC__ >= 4 #define IRECV_API __attribute__((visibility("default"))) diff --git a/src/libirecovery.c b/src/libirecovery.c index afb9a88..406fb1a 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -61,7 +61,11 @@ #ifdef IRECV_STATIC #define IRECV_API #elif defined(_WIN32) - #define IRECV_API __declspec( dllexport ) + #ifdef DLL_EXPORT + #define IRECV_API __declspec( dllexport ) + #else + #define IRECV_API + #endif #else #if __GNUC__ >= 4 #define IRECV_API __attribute__((visibility("default"))) |
