diff options
Diffstat (limited to 'vcpkg/ports/libimobiledevice/003_fix_api.patch')
| -rw-r--r-- | vcpkg/ports/libimobiledevice/003_fix_api.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/ports/libimobiledevice/003_fix_api.patch b/vcpkg/ports/libimobiledevice/003_fix_api.patch new file mode 100644 index 0000000..1558ab6 --- /dev/null +++ b/vcpkg/ports/libimobiledevice/003_fix_api.patch @@ -0,0 +1,21 @@ +diff --git a/src/idevice.h b/src/idevice.h +index 2509e48..384f178 100644 +--- a/src/idevice.h ++++ b/src/idevice.h +@@ -37,15 +37,11 @@ + #include <mbedtls/ctr_drbg.h> + #endif + +-#ifdef WIN32 +-#define LIBIMOBILEDEVICE_API __declspec( dllexport ) +-#else +-#ifdef HAVE_FVISIBILITY ++#if !defined(_WIN32) && !defined(LIBIMOBILEDEVICEGLUE_STATIC) + #define LIBIMOBILEDEVICE_API __attribute__((visibility("default"))) + #else + #define LIBIMOBILEDEVICE_API + #endif +-#endif + + #include "common/userpref.h" + #include "libimobiledevice/libimobiledevice.h" |