mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 16:47:55 +08:00
20 lines
577 B
Diff
20 lines
577 B
Diff
|
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
|