diff options
author | 2024-01-31 02:57:11 +0100 | |
---|---|---|
committer | 2024-01-31 02:57:11 +0100 | |
commit | 63bbac545efc400373a7f472fdd78174149119c3 (patch) | |
tree | f95c8d58b7b0fbf33bd188c5becc0401ee7e64ef /src/idevice.h | |
parent | f723a44513eb5ba5797da24bc2b63d9f09600a6e (diff) | |
download | libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.gz libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.bz2 |
Move LIBIMOBILEDEVICE_API to public headers
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" |