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
OpenDAS
dlib
Commits
aff1d5bd
Commit
aff1d5bd
authored
Sep 21, 2016
by
Evgeniy Fominov
Committed by
Davis E. King
Sep 21, 2016
Browse files
Fixed warning about winsock2.h in windows build (#236)
parent
4eb84487
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dlib/sockets/sockets_kernel_1.cpp
dlib/sockets/sockets_kernel_1.cpp
+2
-1
No files found.
dlib/sockets/sockets_kernel_1.cpp
View file @
aff1d5bd
...
...
@@ -6,6 +6,8 @@
#ifdef WIN32
#include <winsock2.h>
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_
/* Prevent inclusion of winsock.h in windows.h */
#endif
...
...
@@ -15,7 +17,6 @@
#include "sockets_kernel_1.h"
#include <windows.h>
#include <winsock2.h>
#ifndef NI_MAXHOST
#define NI_MAXHOST 1025
...
...
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