win32: Avoid exporting non-public symbols with declspec dllexport
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