diff --git a/ixwebsocket/IXUserAgent.cpp b/ixwebsocket/IXUserAgent.cpp index 85fb9992..89dcb0f3 100644 --- a/ixwebsocket/IXUserAgent.cpp +++ b/ixwebsocket/IXUserAgent.cpp @@ -8,7 +8,9 @@ #include "IXWebSocketVersion.h" #include +#ifdef IXWEBSOCKET_USE_ZLIB #include +#endif // Platform name #if defined(_WIN32) @@ -77,8 +79,10 @@ namespace ix ss << " nossl"; #endif +#ifdef IXWEBSOCKET_USE_ZLIB // Zlib version ss << " zlib " << ZLIB_VERSION; +#endif return ss.str(); }