aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libimobiledevice-glue/004_fix_api.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libimobiledevice-glue/004_fix_api.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libimobiledevice-glue/004_fix_api.patch')
-rw-r--r--vcpkg/ports/libimobiledevice-glue/004_fix_api.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/libimobiledevice-glue/004_fix_api.patch b/vcpkg/ports/libimobiledevice-glue/004_fix_api.patch
new file mode 100644
index 0000000..9eea958
--- /dev/null
+++ b/vcpkg/ports/libimobiledevice-glue/004_fix_api.patch
@@ -0,0 +1,20 @@
+diff --git a/src/common.h b/src/common.h
+index bd22e3d..144a799 100644
+--- a/src/common.h
++++ b/src/common.h
+@@ -25,14 +25,10 @@
+ #include <config.h>
+ #endif
+
+-#ifdef WIN32
+-#define LIBIMOBILEDEVICE_GLUE_API __declspec( dllexport )
+-#else
+-#ifdef HAVE_FVISIBILITY
++#if !defined(_WIN32) && !defined(LIBIMOBILEDEVICEGLUE_STATIC)
+ #define LIBIMOBILEDEVICE_GLUE_API __attribute__((visibility("default")))
+ #else
+ #define LIBIMOBILEDEVICE_GLUE_API
+ #endif
+-#endif
+
+ #endif