summaryrefslogtreecommitdiff
path: root/googleurl/url_canon_ip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'googleurl/url_canon_ip.cpp')
-rwxr-xr-x[-rw-r--r--]googleurl/url_canon_ip.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/googleurl/url_canon_ip.cpp b/googleurl/url_canon_ip.cpp
index a149242..9acf77c 100644..100755
--- a/googleurl/url_canon_ip.cpp
+++ b/googleurl/url_canon_ip.cpp
@@ -37,6 +37,9 @@
#ifndef _WIN32
#include <inttypes.h>
+#else
+#define WIN32_MEAN_AND_LEAN
+#include <windows.h>
#endif
namespace url_canon {
@@ -179,7 +182,7 @@ CanonHostInfo::Family IPv4ComponentToNumber(
// Use the 64-bit strtoi so we get a big number (no hex, decimal, or octal
// number can overflow a 64-bit number in <= 16 characters).
#ifdef WIN32
- uint64 num = _strtoui64(buf, NULL, BaseForType(base));
+ UINT64 num = _strtoui64(buf, NULL, BaseForType(base));
#else
uint64_t num = strtoull(buf, NULL, BaseForType(base));
#endif