Skip to content

Commit a89893f

Browse files
richardlaucodebytere
authored andcommittedMar 17, 2020
build: silence c-ares Windows compiler warnings
Silence the following compiler warning on Windows: `inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings` PR-URL: #31311 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 6e76752 commit a89893f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎deps/cares/cares.gyp

+4-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@
112112
'defines': [ 'CARES_BUILDING_LIBRARY' ]
113113
}],
114114
[ 'OS=="win"', {
115-
'defines': [ 'CARES_PULL_WS2TCPIP_H=1' ],
115+
'defines': [
116+
'CARES_PULL_WS2TCPIP_H=1',
117+
'_WINSOCK_DEPRECATED_NO_WARNINGS',
118+
],
116119
'include_dirs': [ 'config/win32' ],
117120
'sources': [
118121
'src/config-win32.h',

0 commit comments

Comments
 (0)
Please sign in to comment.