libuv: Add pragmas for win32 libraries.

This commit is contained in:
Peter Johnson
2018-06-17 15:18:25 -07:00
parent 6f0d50b9cb
commit 39670fc9c0
4 changed files with 11 additions and 0 deletions

View File

@@ -37,6 +37,7 @@
#include <wincrypt.h>
#pragma comment(lib, "Advapi32.lib")
#define UV_FS_FREE_PATHS 0x0002
#define UV_FS_FREE_PTR 0x0008

View File

@@ -40,6 +40,8 @@
#include "stream-inl.h"
#include "req-inl.h"
#pragma comment(lib, "User32.lib")
#ifndef InterlockedOr
# define InterlockedOr _InterlockedOr
#endif

View File

@@ -74,6 +74,12 @@
static char *process_title;
static CRITICAL_SECTION process_title_lock;
#pragma comment(lib, "Advapi32.lib")
#pragma comment(lib, "IPHLPAPI.lib")
#pragma comment(lib, "Psapi.lib")
#pragma comment(lib, "Userenv.lib")
#pragma comment(lib, "kernel32.lib")
/* Interval (in seconds) of the high-resolution clock. */
static double hrtime_interval_ = 0;

View File

@@ -26,6 +26,8 @@
#include "internal.h"
#pragma comment(lib, "Ws2_32.lib")
/* Whether there are any non-IFS LSPs stacked on TCP */
int uv_tcp_non_ifs_lsp_ipv4;
int uv_tcp_non_ifs_lsp_ipv6;