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