summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-10-03 13:33:00 +0200
committerGravatar Nikias Bassen2014-10-03 13:33:00 +0200
commit75c79a6e702a0b3eefe958d2cd348a9bc81eb951 (patch)
treeb812ec70d60123e4c4089aaf957b5dc090897fc3 /src
parentc0b6aede3d142caf4f7d5af9fbb3ec32efc6b57c (diff)
downloadlibusbmuxd-75c79a6e702a0b3eefe958d2cd348a9bc81eb951.tar.gz
libusbmuxd-75c79a6e702a0b3eefe958d2cd348a9bc81eb951.tar.bz2
win32: Avoid exporting non-public symbols with declspec dllexport
Diffstat (limited to 'src')
-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