try fix for windows build

This commit is contained in:
xiongguangjie 2022-06-06 22:13:53 +08:00
parent c92fc8a4a8
commit 020b8b85ea

View File

@ -1,9 +1,9 @@
#ifndef ZLMEDIAKIT_SRT_COMMON_H #ifndef ZLMEDIAKIT_SRT_COMMON_H
#define ZLMEDIAKIT_SRT_COMMON_H #define ZLMEDIAKIT_SRT_COMMON_H
#if defined(_WIN32) #if defined(_WIN32)
#include <Iphlpapi.h>
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
#include <Iphlpapi.h>
#pragma comment (lib, "Ws2_32.lib") #pragma comment (lib, "Ws2_32.lib")
#pragma comment(lib,"Iphlpapi.lib") #pragma comment(lib,"Iphlpapi.lib")
#else #else