summaryrefslogtreecommitdiff
path: root/lib/config-win32ce.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 /lib/config-win32ce.h
parentcbd1a77ec24e397d05f20c6de106625676343c9d (diff)
downloadcurl-dee3844f130994f720588cdac9931e202d252641.tar.gz
MSVC versions prior to VS2005 do not complain about portable C functions
Diffstat (limited to 'lib/config-win32ce.h')
-rw-r--r--lib/config-win32ce.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h
index 4d4016079..7531d4b1f 100644
--- a/lib/config-win32ce.h
+++ b/lib/config-win32ce.h
@@ -308,6 +308,12 @@
/* Undef keyword 'const' if it does not work. */
/* #undef const */
+/* 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
+
/* ---------------------------------------------------------------- */
/* LDAP SUPPORT */
/* ---------------------------------------------------------------- */
@@ -320,10 +326,6 @@
/* ADDITIONAL DEFINITIONS */
/* ---------------------------------------------------------------- */
-/* Defines set for VS2005 to _not_ deprecate a few functions we use. */
-#define _CRT_SECURE_NO_DEPRECATE 1
-#define _CRT_NONSTDC_NO_DEPRECATE 1
-
/* Define cpu-machine-OS */
#undef OS
#define OS "i386-pc-win32ce"