mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 01:29:08 +08:00
cc00cf05fb
* Add libplist * Add libusbmuxd * Fix typos * Add getopt * Add libimobiledevice * Fix typos * Add libideviceactivation * Add ideviceinstaller * Include utilities * Install usbmuxd * Add readline * Fix readline on 64-bit windows * Add libirecovery * libideviceactivation: include tools * Bump versions to fix build issues * Bump versions * Add idevicerestore * [getopt][getopt-win32] Rename to getopt-win32 and only install on Windows Desktop * [readline][readline-win32] Rename to readline-win32 and only install for Windows Desktop * [vcpkg_from_github][vcpkg_apply_patches] Make PATCHES relative to the current port directory * [vcpkg_install_msbuild][vcpkg_check_linkage] Introduce vcpkg_install_msbuild() and vcpkg_check_linkage(). * [libimobiledevice et al] Use vcpkg_from_github() and vcpkg_install_msbuild() * [readline] Fix static builds
27 lines
697 B
Diff
27 lines
697 B
Diff
diff --git a/include/usbmuxd.h b/include/usbmuxd.h
|
|
index 5a3b0c0..aa1c8d9 100644
|
|
--- a/include/usbmuxd.h
|
|
+++ b/include/usbmuxd.h
|
|
@@ -24,7 +24,7 @@
|
|
#define USBMUXD_H
|
|
#include <stdint.h>
|
|
|
|
-#ifdef _MSC_VER
|
|
+#if defined(_MSC_VER) && defined(USBMUXD_EXPORTS)
|
|
#define USBMUXD_API_MSC __declspec( dllexport )
|
|
#else
|
|
#ifdef HAVE_FVISIBILITY
|
|
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c
|
|
index b94c83c..1902a55 100644
|
|
--- a/src/libusbmuxd.c
|
|
+++ b/src/libusbmuxd.c
|
|
@@ -34,7 +34,7 @@
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
-#ifdef _MSC_VER
|
|
+#if defined(_MSC_VER) && defined(USBMUXD_EXPORTS)
|
|
#define USBMUXD_API __declspec( dllexport )
|
|
#else
|
|
#define USBMUXD_API
|