summaryrefslogtreecommitdiffstats
path: root/base/sys_byteorder.h
diff options
context:
space:
mode:
authorbcwhite <bcwhite@chromium.org>2015-11-30 11:09:33 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-30 19:10:24 +0000
commite2452b1f6a0fd3f6ce592acc9a7741dac7c6d76a (patch)
tree2e0a2c0fd607fb83c16f664a5f531831218fd379 /base/sys_byteorder.h
parenta042ba7e0ac563546841a9ddcc35967e8e25ef73 (diff)
downloadchromium_src-e2452b1f6a0fd3f6ce592acc9a7741dac7c6d76a.zip
chromium_src-e2452b1f6a0fd3f6ce592acc9a7741dac7c6d76a.tar.gz
chromium_src-e2452b1f6a0fd3f6ce592acc9a7741dac7c6d76a.tar.bz2
Removed unused include of winsock.h/inet.h from sys_byteorder.h.
The sys_byteorder methods no longer use htonl() and friends and so the include in not necessary. Several files, however, expect those system methods to be available after including sys_byteorder.h so they have been changed to use the methods defined within sys_byteorder.h instead. TBR=jam BUG= Review URL: https://codereview.chromium.org/1471073010 Cr-Commit-Position: refs/heads/master@{#362179}
Diffstat (limited to 'base/sys_byteorder.h')
-rw-r--r--base/sys_byteorder.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/base/sys_byteorder.h b/base/sys_byteorder.h
index 704ed568..efdf7df 100644
--- a/base/sys_byteorder.h
+++ b/base/sys_byteorder.h
@@ -14,12 +14,6 @@
#include "base/basictypes.h"
#include "build/build_config.h"
-#if defined(OS_WIN)
-#include <winsock2.h>
-#else
-#include <arpa/inet.h>
-#endif
-
namespace base {
// Returns a value with all bytes in |x| swapped, i.e. reverses the endianness.