summaryrefslogtreecommitdiff
path: root/protocols/Discord
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord')
-rw-r--r--protocols/Discord/discord.vcxproj6
-rw-r--r--protocols/Discord/src/main.cpp2
-rw-r--r--protocols/Discord/src/stdafx.h1
3 files changed, 8 insertions, 1 deletions
diff --git a/protocols/Discord/discord.vcxproj b/protocols/Discord/discord.vcxproj
index 1a76deed6c..e847683d43 100644
--- a/protocols/Discord/discord.vcxproj
+++ b/protocols/Discord/discord.vcxproj
@@ -31,9 +31,13 @@
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup>
- <ProjectReference Include="..\..\libs\zlib\zlib.vcxproj">
+ <ProjectReference Include="..\..\libs\libcurl\libcurl.vcxproj">
<Project>{e2a369cd-eda3-414f-8ad0-e732cd7ee68c}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
+ <ProjectReference Include="..\..\libs\zlib\zlib.vcxproj">
+ <Project>{01F9E227-06F5-4BED-907F-402CA7DFAFE6}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/protocols/Discord/src/main.cpp b/protocols/Discord/src/main.cpp
index 850d4a044e..3cb16686d9 100644
--- a/protocols/Discord/src/main.cpp
+++ b/protocols/Discord/src/main.cpp
@@ -69,6 +69,8 @@ extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
+ curl_global_init(CURL_GLOBAL_ALL);
+
g_hwndHeartbeat = CreateWindowEx(0, L"STATIC", NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL);
PROTOCOLDESCRIPTOR pd = { 0 };
diff --git a/protocols/Discord/src/stdafx.h b/protocols/Discord/src/stdafx.h
index 6857b6f9f4..7fe4d87f13 100644
--- a/protocols/Discord/src/stdafx.h
+++ b/protocols/Discord/src/stdafx.h
@@ -41,6 +41,7 @@
#include <m_avatars.h>
#include <win2k.h>
+#include "../../libs/libcurl/include/curl/curl.h"
#include "../../libs/zlib/src/zlib.h"
extern HINSTANCE g_hInstance;