summaryrefslogtreecommitdiff
path: root/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
commit70f98a29cb9f1a202bf4bd1d35e2eb74107df081 (patch)
tree71db82a016287b4acf5682cc6505b20f3306169b /config-win32.h
parent269e082f77c34db23eed4e875389f5c8a20fcd5d (diff)
downloadc-ares-70f98a29cb9f1a202bf4bd1d35e2eb74107df081.tar.gz
c-ares-70f98a29cb9f1a202bf4bd1d35e2eb74107df081.tar.bz2
c-ares-70f98a29cb9f1a202bf4bd1d35e2eb74107df081.zip
MSVC versions prior to VS2005 do not complain about portable C functions
Diffstat (limited to 'config-win32.h')
-rw-r--r--config-win32.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/config-win32.h b/config-win32.h
index 94ffe53..1b65ce7 100644
--- a/config-win32.h
+++ b/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 */
/* ---------------------------------------------------------------- */