aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/cares
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2017-04-18 12:27:44 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2017-04-18 15:21:40 -0700
commit2aa194329b7d89f6db7b9c722aced44d495d1e87 (patch)
tree9a38dd73a5ffe31adfc4ea31ce6643fbf4dae257 /third_party/cares
parent5ef2087de7067435c321c9e634aefd7b80441295 (diff)
c-ares mingw32 support
Diffstat (limited to 'third_party/cares')
-rw-r--r--third_party/cares/ares_build.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/cares/ares_build.h b/third_party/cares/ares_build.h
index 7d69f1e6ae..d6b3d49f37 100644
--- a/third_party/cares/ares_build.h
+++ b/third_party/cares/ares_build.h
@@ -251,4 +251,14 @@
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;
#endif
+/* Undefine UNICODE, as c-ares does not use the ANSI version of functions */
+/* explicitly. */
+#ifdef UNICODE
+# undef UNICODE
+#endif
+
+#ifdef _UNICODE
+# undef _UNICODE
+#endif
+
#endif /* __CARES_BUILD_H */