gcontini
2020-05-16 c790796567083337aa99ef2892bfa6dd401b751d
windows...
1个文件已修改
2 ■■■■■ 已修改文件
src/library/os/network.hpp 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/os/network.hpp
@@ -9,10 +9,12 @@
#define SRC_LIBRARY_OS_NETWORK_HPP_
#include <stdlib.h>
#include <vector>
#ifdef __unix__
#include <netdb.h>
#define LCC_ADAPTER_DESCRIPTION_LEN NI_MAXHOST
#else
#include <Windows.h>
#include <iphlpapi.h>
#define LCC_ADAPTER_DESCRIPTION_LEN MAX_ADAPTER_DESCRIPTION_LENGTH
#endif