gcontini
2020-05-16 de3909a84cb4e7544514c314d78d56a4fe1da099
fix mingw
1个文件已修改
3 ■■■■■ 已修改文件
src/library/os/network.hpp 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/os/network.hpp
@@ -14,7 +14,10 @@
#include <netdb.h>
#define LCC_ADAPTER_DESCRIPTION_LEN NI_MAXHOST
#else
//mingw cross compile for Windows
#ifdef _MSC_VER
#include <Windows.h>
#endif
#include <iphlpapi.h>
#define LCC_ADAPTER_DESCRIPTION_LEN MAX_ADAPTER_DESCRIPTION_LENGTH
#endif