Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
aff1d5bd
Commit
aff1d5bd
authored
Sep 21, 2016
by
Evgeniy Fominov
Committed by
Davis E. King
Sep 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warning about winsock2.h in windows build (#236)
parent
4eb84487
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
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 @@
...
@@ -6,6 +6,8 @@
#ifdef WIN32
#ifdef WIN32
#include <winsock2.h>
#ifndef _WINSOCKAPI_
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_
/* Prevent inclusion of winsock.h in windows.h */
#define _WINSOCKAPI_
/* Prevent inclusion of winsock.h in windows.h */
#endif
#endif
...
@@ -15,7 +17,6 @@
...
@@ -15,7 +17,6 @@
#include "sockets_kernel_1.h"
#include "sockets_kernel_1.h"
#include <windows.h>
#include <windows.h>
#include <winsock2.h>
#ifndef NI_MAXHOST
#ifndef NI_MAXHOST
#define NI_MAXHOST 1025
#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