Based on feedback from Cory Nelson, I added some preprocessor magic in
authorDaniel Stenberg <daniel@haxx.se>
Sun, 24 Apr 2005 22:25:04 +0000 (22:25 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 24 Apr 2005 22:25:04 +0000 (22:25 +0000)
*/setup.h and */config-win32.h to build fine with VS2005 on x64.

CHANGES
lib/config-win32.h
lib/setup.h
src/config-win32.h
src/setup.h

diff --git a/CHANGES b/CHANGES
index 7942930..49582ae 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,10 @@
                                   Changelog
 
 
+Daniel (25 April 2005)
+- Based on feedback from Cory Nelson, I added some preprocessor magic in
+  */setup.h and */config-win32.h to build fine with VS2005 on x64.
+
 Daniel (23 April 2005)
 - Alex Suykov made the curl tool now assume that uploads using HTTP:// or
   HTTPS:// are the only ones that show output and thus motivates a switched
index e17ef98..3a6f657 100644 (file)
 /* lber dynamic library file */
 /* #undef DL_LBER_FILE */
 
+/* Defines set for VS2005 to _not_ decprecate a few functions we use. */
+#define _CRT_SECURE_NO_DEPRECATE
+#define _CRT_NONSTDC_NO_DEPRECATE
+
 /* ldap dynamic library file */
 #define DL_LDAP_FILE "wldap32.dll"
 
index b44e777..bf3a9aa 100644 (file)
 #endif
 
 #if !defined(WIN32) && defined(__WIN32__)
-/* This should be a good Borland fix. Alexander J. Oss told us! */
+/* This should be a good Borland fix. */
+#define WIN32
+#endif
+#if !defined(WIN32) && defined(_WIN32)
+/* This works for VS2005 on x64 */
 #define WIN32
 #endif
 
index c07c349..e6dde29 100644 (file)
 /* Define if you have the setlocale() function. */
 #define HAVE_SETLOCALE 1
 
+/* Defines set for VS2005 to _not_ decprecate a few functions we use. */
+#define _CRT_SECURE_NO_DEPRECATE
+#define _CRT_NONSTDC_NO_DEPRECATE
+
 /*************************************************
  * This section is for compiler specific defines.*
  *************************************************/
index b9b2283..3b6df3d 100644 (file)
 /* Borland fix */
 #define WIN32
 #endif
+#if !defined(WIN32) && defined(_WIN32)
+/* This works for VS2005 on x64 */
+#define WIN32
+#endif
 
 #ifdef HAVE_CONFIG_H
 #include "config.h" /* the configure script results */