summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libusbmuxd.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c
index a26b835..3456bfb 100644
--- a/src/libusbmuxd.c
+++ b/src/libusbmuxd.c
@@ -30,10 +30,14 @@
#include <config.h>
#endif
-#ifdef HAVE_FVISIBILITY
-#define USBMUXD_API __attribute__((visibility("default")))
+#ifdef WIN32
+ #define USBMUXD_API __declspec( dllexport )
#else
-#define USBMUXD_API
+ #ifdef HAVE_FVISIBILITY
+ #define USBMUXD_API __attribute__((visibility("default")))
+ #else
+ #define USBMUXD_API
+ #endif
#endif
#ifdef WIN32