Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ endif ()

### "Libraries"
add_library (https MODULE
lua/main.cpp
lua/luahttps.cpp
)

add_library (https-common STATIC
Expand Down
4 changes: 4 additions & 0 deletions src/generic/CurlClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,22 @@
#include <sstream>
#include <vector>

#ifndef HTTPS_BACKEND_CURL_LINKED
// Dynamic library loader
#ifdef _WIN32
#include <windows.h>
#else
#include <dlfcn.h>
#endif
#endif

typedef struct StringReader
{
const std::string *str;
size_t pos;
} StringReader;

#ifndef HTTPS_BACKEND_CURL_LINKED
template <class T>
static inline bool loadSymbol(T &var, void *handle, const char *name)
{
Expand All @@ -35,6 +38,7 @@ static inline bool loadSymbol(T &var, void *handle, const char *name)
#endif
return var != nullptr;
}
#endif

CurlClient::Curl::Curl()
: handle(nullptr)
Expand Down
File renamed without changes.