aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libimobiledevice-glue/003_fix_static_build.patch
blob: 4e587cfd4fff9f04ec04bc125a6c11f091555de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/glue.c b/src/glue.c
index 7970679..bad3269 100644
--- a/src/glue.c
+++ b/src/glue.c
@@ -29,6 +29,8 @@
 #include "common.h"
 #include "libimobiledevice-glue/thread.h"
 
+#ifndef LIBIMOBILEDEVICEGLUE_STATIC  // disable dll constructor
+
 extern void term_colors_init();
 
 static void internal_glue_init(void)
@@ -78,3 +80,5 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
 #else
 #warning No compiler support for constructor/destructor attributes, some features might not be available.
 #endif
+
+#endif  // disable dll constructor