mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 14:27:55 +08:00
21 lines
470 B
Diff
21 lines
470 B
Diff
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
|