diff options
Diffstat (limited to 'vcpkg/ports/libimobiledevice-glue/004_fix_api.patch')
| -rw-r--r-- | vcpkg/ports/libimobiledevice-glue/004_fix_api.patch | 20 |
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 |