Link to Windows libraries in CMake project, remove related #pragma directives

In addition to making the code cleaner, this also prevents potential issues due to #pragma directives being in headers.
This commit is contained in:
Davide Beatrici committed 2021-02-28 20:35:25 +01:00
1 parent ec201f340a
commit dbd4dd5ae7
7 files changed
+3 -34

No files matched your search

-2
View File
@@ -33,8 +33,6 @@
#include "vpnwebdlg_inner.h"
#include "resource.h"
#pragma comment(lib, "wininet.lib")
static VPNWEBDLG_INIT data;
static bool inited = false;
static VW_TASK task;