diff options
Diffstat (limited to 'src/idevice.h')
-rw-r--r-- | src/idevice.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/idevice.h b/src/idevice.h index 2509e48..dd72f9d 100644 --- a/src/idevice.h +++ b/src/idevice.h | |||
@@ -37,14 +37,16 @@ | |||
37 | #include <mbedtls/ctr_drbg.h> | 37 | #include <mbedtls/ctr_drbg.h> |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #ifdef WIN32 | 40 | #ifdef LIBIMOBILEDEVICE_STATIC |
41 | #define LIBIMOBILEDEVICE_API __declspec( dllexport ) | 41 | #define LIBIMOBILEDEVICE_API |
42 | #elif defined(_WIN32) | ||
43 | #define LIBIMOBILEDEVICE_API __declspec( dllexport ) | ||
42 | #else | 44 | #else |
43 | #ifdef HAVE_FVISIBILITY | 45 | #if __GNUC__ >= 4 |
44 | #define LIBIMOBILEDEVICE_API __attribute__((visibility("default"))) | 46 | #define LIBIMOBILEDEVICE_API __attribute__((visibility("default"))) |
45 | #else | 47 | #else |
46 | #define LIBIMOBILEDEVICE_API | 48 | #define LIBIMOBILEDEVICE_API |
47 | #endif | 49 | #endif |
48 | #endif | 50 | #endif |
49 | 51 | ||
50 | #include "common/userpref.h" | 52 | #include "common/userpref.h" |