vcpkg/ports/libplist/fix_static_build.patch
xiaozhuai, Weihang Ding 16fc24d042
[libplist & libusbmuxd & libimobiledevice] Support build on macos & linux (#28022)
* [libplist & libusbmuxd & libimobiledevice] Support build on macos & linux

* update version database
2022-12-13 19:13:11 -08:00

23 lines
478 B
Diff

diff --git a/src/plist.c b/src/plist.c
index 57f0be4..cbe10ad 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -62,6 +62,8 @@ static void internal_plist_deinit(void)
plist_xml_deinit();
}
+#ifndef LIBPLIST_STATIC_LIBRARY
+
#ifdef WIN32
typedef volatile struct {
@@ -116,6 +118,8 @@ static void __attribute__((destructor)) libplist_deinitialize(void)
#endif
+#endif
+
#ifndef HAVE_MEMMEM
// see https://sourceware.org/legacy-ml/libc-alpha/2007-12/msg00000.html