Browse Source

Omit pragma comment for ZT_SDK builds on Windows

Joseph Henry 7 years ago
parent
commit
a867fe404b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/ZeroTierOne.h

+ 2 - 0
include/ZeroTierOne.h

@@ -51,6 +51,7 @@
 #define ZT_SDK_API __declspec(dllexport)
 #else
 #define ZT_SDK_API __declspec(dllimport)
+#if !defined(ZT_SDK)
 #ifdef _DEBUG
 #ifdef _WIN64
 #pragma comment(lib, "ZeroTierOne_x64d.lib")
@@ -65,6 +66,7 @@
 #endif
 #endif
 #endif
+#endif
 #else
 #define ZT_SDK_API
 #endif