Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: net/base/sys_addrinfo.h

Issue 2562113002: Fix header guards in //net. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/base/sdch_observer.h ('k') | net/base/test_data_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This is a convenience header to pull in the platform-specific headers 5 // This is a convenience header to pull in the platform-specific headers
6 // that define at least: 6 // that define at least:
7 // 7 //
8 // struct addrinfo 8 // struct addrinfo
9 // struct sockaddr* 9 // struct sockaddr*
10 // getaddrinfo() 10 // getaddrinfo()
11 // freeaddrinfo() 11 // freeaddrinfo()
12 // AI_* 12 // AI_*
13 // AF_* 13 // AF_*
14 // 14 //
15 // Prefer including this file instead of directly writing the #if / #else, 15 // Prefer including this file instead of directly writing the #if / #else,
16 // since it avoids duplicating the platform-specific selections. 16 // since it avoids duplicating the platform-specific selections.
17 17
18 #ifndef NET_BASE_SYS_ADDRINFO_H_
19 #define NET_BASE_SYS_ADDRINFO_H_
20
18 #include "build/build_config.h" 21 #include "build/build_config.h"
19 22
20 #if defined(OS_WIN) 23 #if defined(OS_WIN)
21 #include <ws2tcpip.h> 24 #include <ws2tcpip.h>
22 #elif defined(OS_POSIX) 25 #elif defined(OS_POSIX)
23 #include <netdb.h> 26 #include <netdb.h>
24 #include <netinet/in.h> 27 #include <netinet/in.h>
25 #include <sys/socket.h> 28 #include <sys/socket.h>
26 #endif 29 #endif
30
31 #endif // NET_BASE_SYS_ADDRINFO_H_
OLDNEW
« no previous file with comments | « net/base/sdch_observer.h ('k') | net/base/test_data_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698