Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
100a10da
Unverified
Commit
100a10da
authored
Jan 05, 2022
by
shiyu1994
Committed by
GitHub
Jan 05, 2022
Browse files
apply patch for R4.2 on Windows (#4923)
parent
2e257192
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/network/socket_wrapper.hpp
src/network/socket_wrapper.hpp
+4
-0
No files found.
src/network/socket_wrapper.hpp
View file @
100a10da
...
...
@@ -60,6 +60,9 @@ const int INVALID_SOCKET = -1;
#endif
#ifdef _WIN32
#ifndef _UCRT
// Recent MinGW has inet_pton, which then causes compiler error in
// combination with this replacement.
#ifndef _MSC_VER
// not using visual studio in windows
inline
int
inet_pton
(
int
af
,
const
char
*
src
,
void
*
dst
)
{
...
...
@@ -86,6 +89,7 @@ inline int inet_pton(int af, const char *src, void *dst) {
}
#endif
#endif
#endif
#define MALLOC(x) HeapAlloc(GetProcessHeap(), 0, (x))
#define FREE(x) HeapFree(GetProcessHeap(), 0, (x))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment