Skip to content

Commit

Permalink
windows build fix (zerotier#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexIndustrial committed Feb 2, 2024
1 parent 7fa5968 commit c4c645b
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions include/ZeroTierSockets.h
Original file line number Diff line number Diff line change
Expand Up @@ -1011,17 +1011,22 @@ typedef struct {
//----------------------------------------------------------------------------//

#if defined(_WIN32)
#ifdef ADD_EXPORTS
#define ZTS_API __declspec(dllexport)
#ifndef ZTS_STATIC
#ifdef ADD_EXPORTS
#define ZTS_API __declspec(dllexport)
#else
#define ZTS_API __declspec(dllimport)
#endif
#else
#define ZTS_API
#endif
#define ZTCALL __cdecl
#else
#define ZTS_API __declspec(dllimport)
#endif
#define ZTCALL __cdecl
#else
#define ZTS_API
#define ZTCALL
#define ZTS_API
#define ZTCALL
#endif


//----------------------------------------------------------------------------//
// Central API //
//----------------------------------------------------------------------------//
Expand Down

0 comments on commit c4c645b

Please sign in to comment.