Fixed ZT_SDK build issue. Moved ZT_SDK preprocessor directives to more permanent homes

This commit is contained in:
Joseph Henry
2019-05-17 10:15:40 -07:00
parent 4743ad0b16
commit 90d324ae96
4 changed files with 16 additions and 5 deletions

View File

@ -274,7 +274,14 @@ public:
/**
* @return True if frames should not be compressed
*/
inline bool disableCompression() const { return ((this->flags & ZT_NETWORKCONFIG_FLAG_DISABLE_COMPRESSION) != 0); }
inline bool disableCompression() const
{
#ifndef ZT_SDK
return ((this->flags & ZT_NETWORKCONFIG_FLAG_DISABLE_COMPRESSION) != 0);
#else
return false; // Compression is disabled for SDK builds since it doesn't play nice with lwIP
#endif
}
/**
* @return Network type is public (no access control)