Export static symbols when building ws with shared library (#370)

This commit is contained in:
Anton Ivlev
2022-03-19 21:41:40 +03:00
committed by GitHub
parent f7eb3688dd
commit a3d2fa4b7e
8 changed files with 79 additions and 34 deletions

View File

@ -10,6 +10,7 @@
#include "IXSocket.h"
#include "IXSocketTLSOptions.h"
#include "IXWebSocketHttpHeaders.h"
#include "IXWebsocketExport.h"
#include <algorithm>
#include <atomic>
#include <condition_variable>
@ -91,12 +92,12 @@ namespace ix
std::string urlEncode(const std::string& value);
const static std::string kPost;
const static std::string kGet;
const static std::string kHead;
const static std::string kDelete;
const static std::string kPut;
const static std::string kPatch;
IXWEBSOCKET_EXPORT const static std::string kPost;
IXWEBSOCKET_EXPORT const static std::string kGet;
IXWEBSOCKET_EXPORT const static std::string kHead;
IXWEBSOCKET_EXPORT const static std::string kDelete;
IXWEBSOCKET_EXPORT const static std::string kPut;
IXWEBSOCKET_EXPORT const static std::string kPatch;
private:
void log(const std::string& msg, HttpRequestArgsPtr args);