summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/libimobiledevice-glue/glue.h8
-rw-r--r--src/common.h6
2 files changed, 6 insertions, 8 deletions
diff --git a/include/libimobiledevice-glue/glue.h b/include/libimobiledevice-glue/glue.h
index e0364e1..fae35fa 100644
--- a/include/libimobiledevice-glue/glue.h
+++ b/include/libimobiledevice-glue/glue.h
@@ -23,13 +23,7 @@
#define __GLUE_H
#ifndef LIMD_GLUE_API
- #ifdef LIMD_GLUE_STATIC
- #define LIMD_GLUE_API
- #elif defined(_WIN32)
- #define LIMD_GLUE_API __declspec(dllimport)
- #else
- #define LIMD_GLUE_API
- #endif
+ #define LIMD_GLUE_API
#endif
#ifdef __cplusplus
diff --git a/src/common.h b/src/common.h
index 2916039..9b01cad 100644
--- a/src/common.h
+++ b/src/common.h
@@ -28,7 +28,11 @@
#ifdef LIMD_GLUE_STATIC
#define LIMD_GLUE_API
#elif defined(_WIN32)
- #define LIMD_GLUE_API __declspec( dllexport )
+ #ifdef DLL_EXPORT
+ #define LIMD_GLUE_API __declspec( dllexport )
+ #else
+ #define LIMD_GLUE_API
+ #endif
#else
#if __GNUC__ >= 4
#define LIMD_GLUE_API __attribute__((visibility("default")))