diff options
author | Nikias Bassen | 2014-10-03 13:33:00 +0200 |
---|---|---|
committer | Nikias Bassen | 2014-10-03 13:33:00 +0200 |
commit | 75c79a6e702a0b3eefe958d2cd348a9bc81eb951 (patch) | |
tree | b812ec70d60123e4c4089aaf957b5dc090897fc3 | |
parent | c0b6aede3d142caf4f7d5af9fbb3ec32efc6b57c (diff) | |
download | libusbmuxd-75c79a6e702a0b3eefe958d2cd348a9bc81eb951.tar.gz libusbmuxd-75c79a6e702a0b3eefe958d2cd348a9bc81eb951.tar.bz2 |
win32: Avoid exporting non-public symbols with declspec dllexport
-rw-r--r-- | src/libusbmuxd.c | 10 |
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 |