Chromium Code Reviews| Index: third_party/libjingle/overrides/talk/base/win32.h |
| =================================================================== |
| --- third_party/libjingle/overrides/talk/base/win32.h (revision 124023) |
| +++ third_party/libjingle/overrides/talk/base/win32.h (working copy) |
| @@ -52,6 +52,14 @@ |
| #include "talk/base/stringutils.h" |
| #include "talk/base/basictypes.h" |
| +// This is to remove the dependency to ws2_32.dll especially for chrome. |
|
Sergey Ulanov
2012/02/28 21:54:02
nit: please explain why we don't want to depend on
Ronghua Wu (Left Chromium)
2012/02/28 23:16:57
Done.
|
| +// This is correct only on little-endian machines. |
| +#include <stdlib.h> |
|
Sergey Ulanov
2012/02/28 21:54:02
nit: move this include above, next to other system
Ronghua Wu (Left Chromium)
2012/02/28 23:16:57
Done.
|
| +#define ntohl(x) _byteswap_ulong(x) |
| +#define ntohs(x) _byteswap_ushort(x) |
| +#define htonl(x) _byteswap_ulong(x) |
| +#define htons(x) _byteswap_ushort(x) |
| + |
| namespace talk_base { |
| const char* win32_inet_ntop(int af, const void *src, char* dst, socklen_t size); |