Skip to content

Commit

Permalink
win32: Avoid exporting non-public symbols with declspec dllexport
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Oct 3, 2014
1 parent c0b6aed commit 75c79a6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/libusbmuxd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75c79a6

Please sign in to comment.