Skip to content

Commit 75c79a6

Browse files
committed
win32: Avoid exporting non-public symbols with declspec dllexport
1 parent c0b6aed commit 75c79a6

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/libusbmuxd.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@
3030
#include <config.h>
3131
#endif
3232

33-
#ifdef HAVE_FVISIBILITY
34-
#define USBMUXD_API __attribute__((visibility("default")))
33+
#ifdef WIN32
34+
#define USBMUXD_API __declspec( dllexport )
3535
#else
36-
#define USBMUXD_API
36+
#ifdef HAVE_FVISIBILITY
37+
#define USBMUXD_API __attribute__((visibility("default")))
38+
#else
39+
#define USBMUXD_API
40+
#endif
3741
#endif
3842

3943
#ifdef WIN32

0 commit comments

Comments
 (0)