Merge third_party/brotli/src from https://chromium.googlesource.com/external/font-compression-reference.git at 6cef49677dc4c650ef6e3f56041e0a41803afa8c

This commit was generated by merge_from_chromium.py.

Change-Id: I46222b4d98247fd5bdc0597fc2a012777763a3c9
diff --git a/woff2/buffer.h b/woff2/buffer.h
index f71f6a8..5111c65 100644
--- a/woff2/buffer.h
+++ b/woff2/buffer.h
@@ -18,8 +18,25 @@
 #ifndef WOFF2_BUFFER_H_
 #define WOFF2_BUFFER_H_
 
-#include <stdint.h>
+#if defined(_WIN32)
+#include <stdlib.h>
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef short int16_t;
+typedef unsigned short uint16_t;
+typedef int int32_t;
+typedef unsigned int uint32_t;
+typedef __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#define ntohl(x) _byteswap_ulong (x)
+#define ntohs(x) _byteswap_ushort (x)
+#define htonl(x) _byteswap_ulong (x)
+#define htons(x) _byteswap_ushort (x)
+#else
 #include <arpa/inet.h>
+#include <stdint.h>
+#endif
+
 #include <cstdlib>
 #include <cstring>
 #include <limits>