From 75c79a6e702a0b3eefe958d2cd348a9bc81eb951 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 3 Oct 2014 13:33:00 +0200 Subject: win32: Avoid exporting non-public symbols with declspec dllexport --- src/libusbmuxd.c | 10 +++++++--- 1 file 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 #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 -- cgit v1.1-32-gdbae