summaryrefslogtreecommitdiff
path: root/ares/config-win32.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-11-07 18:18:42 +0000
committerYang Tse <yangsita@gmail.com>2007-11-07 18:18:42 +0000
commitdee3844f130994f720588cdac9931e202d252641 (patch)
treefa8a31aaffa58f13c6f907605bd0116e3fbaf2c2 /ares/config-win32.h
parentcbd1a77ec24e397d05f20c6de106625676343c9d (diff)
downloadcurl-dee3844f130994f720588cdac9931e202d252641.tar.gz
MSVC versions prior to VS2005 do not complain about portable C functions
Diffstat (limited to 'ares/config-win32.h')
-rw-r--r--ares/config-win32.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ares/config-win32.h b/ares/config-win32.h
index 94ffe5389..1b65ce764 100644
--- a/ares/config-win32.h
+++ b/ares/config-win32.h
@@ -160,6 +160,16 @@
#define HAVE_STRUCT_TIMEVAL 1
/* ---------------------------------------------------------------- */
+/* COMPILER SPECIFIC */
+/* ---------------------------------------------------------------- */
+
+/* Define to avoid VS2005 complaining about portable C functions */
+#if defined(_MSC_VER) && (_MSC_VER >= 1400)
+#define _CRT_SECURE_NO_DEPRECATE 1
+#define _CRT_NONSTDC_NO_DEPRECATE 1
+#endif
+
+/* ---------------------------------------------------------------- */
/* IPV6 COMPATIBILITY */
/* ---------------------------------------------------------------- */